ajout de reality check dans les évènements traffic qui complète une propriété de l'évènement

This commit is contained in:
Tykayn 2025-09-21 23:59:01 +02:00 committed by tykayn
parent f18383fb9e
commit f66e5e3f7b
5 changed files with 675 additions and 37 deletions

View file

@ -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