Browse Source

fix behavior of combining end date and max weeks

Justin Tracey 3 years ago
parent
commit
74c6aedd1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vice-speaker-rotator.py

+ 1 - 1
vice-speaker-rotator.py

@@ -38,7 +38,7 @@ class CryspCalendar:
         if end:
             last_meeting = str_to_date(end)
         if weeks:
-            last_meeting = max(first_meeting + timedelta(weeks=weeks),
+            last_meeting = min(first_meeting + timedelta(weeks=weeks),
                                last_meeting)
         ret = []
         next_meeting = first_meeting