Skip to content
Snippets Groups Projects
Commit c7ee703a authored by Florian Bruhin's avatar Florian Bruhin
Browse files

Continue update for new format

parent b9240a87
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,17 @@ import os.path
def process(reader):
event_data = collections.defaultdict(list)
for line in reader:
for linenum, line in enumerate(reader):
date, slot = line['Start Date & Time'].split(' ')
# FIXME
slot = f'{date} {slot}'
# assert date == ...
assert date == '2021-03-06', date
exams = line['Response 1'].split('\n') + line['Response 2'].split('\n') # fixme 3 and 4
exams = []
for i in range(1, 5):
key = f'Response {i}'
if key in line:
exams += line[key].split('\n')
elif linenum == 1:
print(f"!!! No {key} key in export!")
exams = [e for e in exams if e]
lastname = line['Invitee Last Name']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment