dav_submission: added group to submission list. Improved E-Mail.

This commit is contained in:
2019-11-07 08:59:45 +01:00
parent 6f999e419d
commit eba8409256
3 changed files with 16 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ class ListView(generic.ListView):
'name': None,
'email_address': None,
'title': None,
'group': None,
'timestamp': None,
}
with open(metadata_file_path) as f:
@@ -58,6 +59,10 @@ class ListView(generic.ListView):
if mo is not None:
metadata['title'] = mo.group(1)
continue
mo = re.match(r'^Gruppe: (.*)$', line)
if mo is not None:
metadata['group'] = mo.group(1)
continue
mo = re.match(r'^Datum: ([0-9]{2}.[0-9]{2}.[0-9]{4}) ([0-9]{2}:[0-9]{2}:[0-9]{2}) (.*)$', line)
if mo is not None:
date_str = mo.group(1)