Compare commits

..

No commits in common. "8c46d7519c72c103f5f6efe832ca61651398c315" and "1f3e2a414d29ccaae01c936a14acab353c042ac0" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -2,8 +2,4 @@
A tool to add a 6-day schedule to calendar apps. A tool to add a 6-day schedule to calendar apps.
Outputs in csv format. Outputs in csv format.
An example config is available in docs/config.py. An example config is available in docs/config.py
**Note from future me:**
The code quality is garbage on this but the tool has faithfully served me for 2 years now 👍
Thank you past me

View File

@ -3,7 +3,7 @@ import datetime
from config import * from config import *
step = datetime.timedelta(days = 1) step = datetime.timedelta(days = 1)
day = 1 day = 1;
for i in range(offset): for i in range(offset):
start_date += step start_date += step
@ -31,7 +31,7 @@ current_date = start_date-step
while True: while True:
current_date += step current_date += step
school = True school = True;
for vacation in vacation_days: for vacation in vacation_days:
if(len(vacation)>1): if(len(vacation)>1):
if current_date >= vacation[0] and current_date <= vacation[1]: if current_date >= vacation[0] and current_date <= vacation[1]: