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 = dict(row['events_tags'])
|
||||||
properties.update({
|
properties.update({
|
||||||
'createdate': row['createdate'],
|
'createdate': row['createdate'],
|
||||||
'last_updated': row['lastupdate']
|
'lastupdate': row['lastupdate'],
|
||||||
|
"id": row['events_id']
|
||||||
})
|
})
|
||||||
if "distance" in row:
|
if "distance" in row:
|
||||||
properties['distance'] = row['distance']
|
properties['distance'] = row['distance']
|
||||||
return {
|
return {
|
||||||
"type": "Feature",
|
"type": "Feature",
|
||||||
"geometry": json.loads(row['geometry']),
|
"geometry": json.loads(row['geometry']),
|
||||||
"id": row['events_id'],
|
|
||||||
"properties": properties
|
"properties": properties
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue