Skip to content
Snippets Groups Projects
Commit ca4ecbc8 authored by Andreas Valder's avatar Andreas Valder
Browse files

more campus fix...

parent 3d2fa205
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,7 @@ def import_from(id):
fmt= "%d.%m.%Y %H:%M"
e['time'] = datetime.strptime("%s %s"%(k,j['start']) ,fmt)
e['duration'] = int((datetime.strptime("%s %s"%(k,j['end']) ,fmt) - e['time']).seconds/60)
j['place'] = str(j['place'])
if j['place'] != '':
dbplace = query("SELECT name FROM places WHERE (campus_room = ?) OR (campus_name = ?) OR ((NOT campus_name) AND name = ?)",j['place'],j['place'],j['place'])
if dbplace:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment