id+lastupdate back in the properties
This commit is contained in:
parent
5312a6bd47
commit
6264912347
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue