Pijush2023 commited on
Commit
95c0119
·
verified ·
1 Parent(s): a7d77bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1213,7 +1213,7 @@ def fetch_local_news():
1213
  api_key = os.environ['SERP_API']
1214
  url = f'https://serpapi.com/search.json?engine=google_news&q=omaha headline&api_key={api_key}'
1215
  response = requests.get(url)
1216
- if response.status_code == 200) {
1217
  results = response.json().get("news_results", [])
1218
  news_html = """
1219
  <h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Omaha Today</h2>
 
1213
  api_key = os.environ['SERP_API']
1214
  url = f'https://serpapi.com/search.json?engine=google_news&q=omaha headline&api_key={api_key}'
1215
  response = requests.get(url)
1216
+ if response.status_code == 200 {
1217
  results = response.json().get("news_results", [])
1218
  news_html = """
1219
  <h2 style="font-family: 'Georgia', serif; color: #ff0000; background-color: #f8f8f8; padding: 10px; border-radius: 10px;">Omaha Today</h2>