Mercurial > code > home > repos > gcalendarwatch
diff create_school_cals.py @ 47:f76f6368e2af
fix JM wednesdays
author | drewp@bigasterisk.com |
---|---|
date | Wed, 14 Aug 2024 15:35:00 -0700 |
parents | a53d79faac16 |
children |
line wrap: on
line diff
--- a/create_school_cals.py Wed Aug 07 00:08:56 2024 -0700 +++ b/create_school_cals.py Wed Aug 14 15:35:00 2024 -0700 @@ -50,7 +50,7 @@ return None -codeVersion = 'auto-gen v3' +codeVersion = 'auto-gen v4' service = getCalendarService() calIdForPerson = json.load(open('gcalendarwatch.conf'))['calId'] @@ -85,6 +85,9 @@ if school == 'BHS' and s.weekday() == 0: startHM = (10, 0) + if school == 'john muir' and s.weekday() == 2: + endHM = (14, 15) + s = s.replace(hour=startHM[0], minute=startHM[1]) e = s.replace(hour=endHM[0], minute=endHM[1])