summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main2.py b/main2.py
index d303044..41580fe 100755
--- a/main2.py
+++ b/main2.py
@@ -61,3 +61,9 @@ for e in _i["semester"]["slots"]:
sem["slots"][e][dayname]["room"]=_e[dayname]["room"]
#### Gen semester calendar
+d=getmonday(sem["start"])
+w=getweek(d)
+while d<sem["end"]:
+
+ d=getnextmonday(d)
+ w+=1