mukhtar commited on
Commit
c389d65
β€’
1 Parent(s): dfecdcc

fixing a bug

Browse files
Files changed (1) hide show
  1. pag/monitor.py +3 -2
pag/monitor.py CHANGED
@@ -89,8 +89,9 @@ def get_cuarted_df_for_field(df, field, date, metric, clientName, dates):
89
  print("curr selected date processed")
90
 
91
 
92
- dates.remove(date)
93
- download_thread = threading.Thread(target=download_date_date, name="Downloader", args=(df, field, dates, metric, clientName))
 
94
  download_thread.start()
95
 
96
  curated_date_path = utils.get_curated_location_img_path(clientName, metric, date, field)
 
89
  print("curr selected date processed")
90
 
91
 
92
+ old_dates = [prev_date for prev_date in dates if prev_date != date]
93
+
94
+ download_thread = threading.Thread(target=download_date_date, name="Downloader", args=(df, field, old_dates, metric, clientName))
95
  download_thread.start()
96
 
97
  curated_date_path = utils.get_curated_location_img_path(clientName, metric, date, field)