diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-08-11 20:56:06 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-08-11 21:02:13 +0200 |
commit | 1d9eb3dc53b5148402568a65d1a72fd7fde536b0 (patch) | |
tree | 8cffc26f42818cc3181dd778aa355d96e45f6bd4 | |
parent | d469229dc37f8d14e1c72eab0e4bad8d2e5fd4fe (diff) | |
download | update-topic-1d9eb3dc53b5148402568a65d1a72fd7fde536b0.tar.gz update-topic-1d9eb3dc53b5148402568a65d1a72fd7fde536b0.tar.bz2 update-topic-1d9eb3dc53b5148402568a65d1a72fd7fde536b0.zip |
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | update_topic.py | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 940e039..fe17da0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +phenny-module-update-topic (0.7) unstable; urgency=medium + + * Use https for pad link + * Correctly handle calls before the first tuesday + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Thu, 11 Aug 2016 21:02:02 +0200 + phenny-module-update-topic (0.6) UNRELEASED; urgency=low * Use dh_python2 for python packaging diff --git a/update_topic.py b/update_topic.py index 741ad4e..e88c80a 100644 --- a/update_topic.py +++ b/update_topic.py @@ -92,7 +92,10 @@ def seconds_until(when): def get_next_meeting(): today = datetime.today() - return (today + relativedelta(months=+1, day=1, weekday=TUESDAY)).date() + delta = relativedelta(day=1, weekday=TUESDAY) + if today >= (today + delta): + delta.months = 1 + return (today + delta).date() def update_topic(phenny, channel, topic): |