From 6264912347cb38240a6252c96397e9367e5c1fd4 Mon Sep 17 00:00:00 2001 From: Christian Quest Date: Tue, 17 May 2016 17:53:45 +0200 Subject: [PATCH] id+lastupdate back in the properties --- backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.py b/backend.py index b95abb9..008641e 100644 --- a/backend.py +++ b/backend.py @@ -59,14 +59,14 @@ class BaseEvent: properties = dict(row['events_tags']) properties.update({ 'createdate': row['createdate'], - 'last_updated': row['lastupdate'] + 'lastupdate': row['lastupdate'], + "id": row['events_id'] }) if "distance" in row: properties['distance'] = row['distance'] return { "type": "Feature", "geometry": json.loads(row['geometry']), - "id": row['events_id'], "properties": properties }