nandes007 commited on
Commit
dc92894
·
verified ·
1 Parent(s): 2d3bf79

get historical data by query

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def historical_event_explorer(query :str, year: int = None)-> str: #it's import
36
  if year is not None and year in historical_data:
37
  return f"In {year}, {historical_data[year]}"
38
  elif query in historical_data:
39
- return historical_data:
40
  else:
41
  return "No historical events found for the given query."
42
 
 
36
  if year is not None and year in historical_data:
37
  return f"In {year}, {historical_data[year]}"
38
  elif query in historical_data:
39
+ return historical_data[query]
40
  else:
41
  return "No historical events found for the given query."
42