Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -228,10 +228,11 @@ def get_possible_destinations():
|
|
| 228 |
|
| 229 |
def get_dataframe_of(day):
|
| 230 |
global cities_datafram, today_dataframe, tomorrow_dataframe
|
|
|
|
| 231 |
if (day.lower() == 'today'):
|
| 232 |
-
return
|
| 233 |
elif (day.lower() == 'tomorrow'):
|
| 234 |
-
return
|
| 235 |
|
| 236 |
def get_specific_flights(day, max_delay, departure_hour, ampm, weather, destinations, yes):
|
| 237 |
df = get_dataframe_of(day)
|
|
|
|
| 228 |
|
| 229 |
def get_dataframe_of(day):
|
| 230 |
global cities_datafram, today_dataframe, tomorrow_dataframe
|
| 231 |
+
today_df, tomorrow_df = today_dataframe, tomorrow_dataframe
|
| 232 |
if (day.lower() == 'today'):
|
| 233 |
+
return today_df
|
| 234 |
elif (day.lower() == 'tomorrow'):
|
| 235 |
+
return tomorrow_df
|
| 236 |
|
| 237 |
def get_specific_flights(day, max_delay, departure_hour, ampm, weather, destinations, yes):
|
| 238 |
df = get_dataframe_of(day)
|