Diego Marroquin commited on
Commit ·
6e2e1ce
1
Parent(s): 1654831
fixed photo date bug for real
Browse files
app.py
CHANGED
|
@@ -311,7 +311,7 @@ def nuc_monitor(usr_start_date, usr_end_date, photo_date, past_date):
|
|
| 311 |
current_datetime_str = current_datetime.strftime("%Y-%m-%d")
|
| 312 |
|
| 313 |
if photo_date == True:
|
| 314 |
-
nuclear_unav = merged_df.copy()[(merged_df.copy()["production_type"] == "NUCLEAR") & (merged_df.copy()["updated_date"] <=
|
| 315 |
photo_date = True
|
| 316 |
else: # need to add updated_date as a conditional to get the newest for that day
|
| 317 |
nuclear_unav = merged_df.copy()[(merged_df.copy()["production_type"] == "NUCLEAR") & (merged_df.copy()["updated_date"] <= end_date_str)]
|
|
|
|
| 311 |
current_datetime_str = current_datetime.strftime("%Y-%m-%d")
|
| 312 |
|
| 313 |
if photo_date == True:
|
| 314 |
+
nuclear_unav = merged_df.copy()[(merged_df.copy()["production_type"] == "NUCLEAR") & (merged_df.copy()["updated_date"] <= past_date_str)]
|
| 315 |
photo_date = True
|
| 316 |
else: # need to add updated_date as a conditional to get the newest for that day
|
| 317 |
nuclear_unav = merged_df.copy()[(merged_df.copy()["production_type"] == "NUCLEAR") & (merged_df.copy()["updated_date"] <= end_date_str)]
|