From ca4ecbc8c4a0d4457ef9c6de131f2e078efb4e74 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Thu, 27 Apr 2017 03:30:44 +0200 Subject: [PATCH] more campus fix... --- importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/importer.py b/importer.py index b631164..50e1715 100644 --- a/importer.py +++ b/importer.py @@ -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: -- GitLab