From 9ac3de1165b7842c769d630e44163c75ab860a00 Mon Sep 17 00:00:00 2001 From: matthias Date: Fri, 17 Jan 2020 09:58:41 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ebibcheck.py=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bibcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bibcheck.py b/bibcheck.py index 38e62fe..a6bf127 100644 --- a/bibcheck.py +++ b/bibcheck.py @@ -58,13 +58,13 @@ def check(username, password, notify_ids): if (delta.days > 7 and delta.days <= 10) or delta.days == 20 or delta.days == 15: for client in itertools.chain(notify_ids, os.environ.get('PUSHOVER_CLIENTS', '').split(',')): try: - pushover.Client(client).send_message(f'Bitte an {info[3]} denken, Abgabe {info[3]} - {username}', title="Erinnerung", html=1) + pushover.Client(client).send_message(f'Bitte an {info[3]} denken, Abgabe {info[1]} - {username}', title="Erinnerung", html=1) except: print("No client") if delta.days <= 7: for client in itertools.chain(notify_ids, os.environ.get('PUSHOVER_CLIENTS', '').split(',')): try: - pushover.Client(client).send_message(f'Bitte an {info[3]} denken, Abgabe {info[3]} - {username}', title="Erinnerung", html=1) + pushover.Client(client).send_message(f'Bitte an {info[3]} denken, Abgabe {info[1]} - {username}', title="Erinnerung", html=1) except: print("No client") except (StopIteration, mechanize._mechanize.LinkNotFoundError) as e: