Compare commits
No commits in common. "8c46d7519c72c103f5f6efe832ca61651398c315" and "1f3e2a414d29ccaae01c936a14acab353c042ac0" have entirely different histories.
8c46d7519c
...
1f3e2a414d
@ -2,8 +2,4 @@
|
||||
A tool to add a 6-day schedule to calendar apps.
|
||||
Outputs in csv format.
|
||||
|
||||
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
|
||||
An example config is available in docs/config.py
|
||||
|
4
main.py
4
main.py
@ -3,7 +3,7 @@ import datetime
|
||||
from config import *
|
||||
|
||||
step = datetime.timedelta(days = 1)
|
||||
day = 1
|
||||
day = 1;
|
||||
for i in range(offset):
|
||||
start_date += step
|
||||
|
||||
@ -31,7 +31,7 @@ current_date = start_date-step
|
||||
|
||||
while True:
|
||||
current_date += step
|
||||
school = True
|
||||
school = True;
|
||||
for vacation in vacation_days:
|
||||
if(len(vacation)>1):
|
||||
if current_date >= vacation[0] and current_date <= vacation[1]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user