From 5840205ad0dc12e4690534ff8d5620b4935ece6d Mon Sep 17 00:00:00 2001 From: matthias Date: Fri, 17 Jan 2020 09:31:15 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibcheck.py b/bibcheck.py index 2289536..a575262 100644 --- a/bibcheck.py +++ b/bibcheck.py @@ -56,7 +56,7 @@ def check(username, password, notify_ids): delta = date - datetime.datetime.now() allinfo.append(str(info)) if delta.days <= 10 or delta.days == 20 or delta.days == 15: - for client in itertools.join(notify_ids, os.environ['PUSHOVER_CLIENTS'].split(',')): + for client in itertools.chain(notify_ids, os.environ['PUSHOVER_CLIENTS'].split(',')): pushover.Client(client).send_message(f'Bitte an {info[3]} denken, Abgabe {info[3]} - {username}', title="Erinnerung") except (StopIteration, mechanize._mechanize.LinkNotFoundError) as e: for client in itertools.join(notify_ids, os.environ['PUSHOVER_CLIENTS'].split(',')):