Pijush2023 commited on
Commit
f8a87bc
·
verified ·
1 Parent(s): c526396

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def fetch_local_events():
67
  api_key = os.environ['SERP_API']
68
  url = f'https://serpapi.com/search.json?engine=google_events&q=Events+in+Birmingham&hl=en&gl=us&api_key={api_key}'
69
  response = requests.get(url)
70
- if response.status_code == 200):
71
  events_results = response.json().get("events_results", [])
72
  events_html = """
73
  <h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Local Events</h2>
 
67
  api_key = os.environ['SERP_API']
68
  url = f'https://serpapi.com/search.json?engine=google_events&q=Events+in+Birmingham&hl=en&gl=us&api_key={api_key}'
69
  response = requests.get(url)
70
+ if response.status_code == 200:
71
  events_results = response.json().get("events_results", [])
72
  events_html = """
73
  <h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Local Events</h2>