From fe51b2cc85cd38a6500513f72d7757eae366d2b8 Mon Sep 17 00:00:00 2001 From: Dirk Sarpe <dsarpe@posteo.de> Date: Mon, 19 Jun 2017 13:34:14 +0200 Subject: [PATCH] remove superfluous prototype --- prototype.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 prototype.py diff --git a/prototype.py b/prototype.py deleted file mode 100644 index a1fc322..0000000 --- a/prototype.py +++ /dev/null @@ -1,14 +0,0 @@ -import requests -import arrow -from ics import Calendar - -url = 'https://portal.idiv.de/ssf/ical/basic.ics?bi=393&ui=1026&pd=171497477d81eb659bd832ffe26c8bfe39d65fc3&v=1' -tz = 'Europe/Berlin' - -now = arrow.now(tz) -period = (now.floor('day'), now.replace(weeks=+2)) - -c = Calendar(requests.get(url).text) -for e in c.events: - if e.begin > period[0] and e.begin < period[1]: - print(e.name, e.begin.humanize(), e.location) -- GitLab