add extractors, rate limit, demo submit form
This commit is contained in:
parent
cc870323bf
commit
2157091778
12 changed files with 1612 additions and 14 deletions
|
@ -36,10 +36,12 @@ class BaseEvent:
|
|||
properties.update({
|
||||
'createdate': row['createdate'],
|
||||
'lastupdate': row['lastupdate'],
|
||||
'lon': row['lon'],
|
||||
'lat': row['lat'],
|
||||
"id": row['events_id']
|
||||
})
|
||||
|
||||
# Ensure what property is used instead of description
|
||||
if 'description' in properties and 'what' not in properties:
|
||||
properties['what'] = properties.pop('description')
|
||||
if 'secret' in properties: # hide secret in results
|
||||
del properties['secret']
|
||||
if "distance" in row:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue