ajout de reality check dans les évènements traffic qui complète une propriété de l'évènement
This commit is contained in:
parent
f18383fb9e
commit
f66e5e3f7b
5 changed files with 675 additions and 37 deletions
|
@ -40,7 +40,7 @@ class DemoResource:
|
|||
resp.content_type = 'text/html'
|
||||
|
||||
# Fetch the event data from the API
|
||||
response = requests.get(f'http://api.openevent/event/{id}')
|
||||
response = requests.get(f'https://api.openeventdatabase.org/event/{id}')
|
||||
|
||||
if response.status_code != 200:
|
||||
resp.status = falcon.HTTP_404
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue