SebastianoMeneghin commited on
Commit
783415a
·
verified ·
1 Parent(s): 280969e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 today_dataframe
233
  elif (day.lower() == 'tomorrow'):
234
- return tomorrow_dataframe
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)