Skip to content
Snippets Groups Projects
Commit efb8711a authored by tuhe's avatar tuhe
Browse files

updatse

parent 88b9f607
No related branches found
No related tags found
1 merge request!2Devel
......@@ -94,7 +94,7 @@ def first_day_of_class(info):
if continuing_education():
first_day_of_class = datetime(year=year(), month=info['first-month'], day=info['first-day'], hour=info['hour'][0], minute=info['minute'][0])
else:
mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=13, minute=0)
mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=info.get('lecture_start_hour', 13), minute=0)
# scroll to monday
while mo_first.weekday() != 0: #strftime('%A') is not 'Monday':
mo_first -= timedelta(days=1)
......@@ -445,7 +445,7 @@ def class_information(verbose=False,
n = l['number']
date = l['date']
dd = timedelta(days=l.get('show_solutions_after', 1))
dd = timedelta(days=l.get('show_solutions_after', 1), hours=4)
d['release_rules'][str(n)] = dict(start=date+dd, end=date+timedelta(days=2000))
# Update with section information.
if sections is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment