dmarr commited on
Commit
8c1bf0e
·
1 Parent(s): 58ab263
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -186,8 +186,8 @@ def nuc_monitor(usr_start_date, usr_end_date, past_date, mongo_db_data):
186
 
187
  sorted_df = sorted_df.copy().reset_index(drop=True)
188
 
189
- golfech_1 = sorted_df.copy()[(sorted_df.copy()["name"] == "GOLFECH 1") & (sorted_df.copy()["end_date"] >= start_date_str)]
190
- print(golfech_1[['updated_date', 'available_capacity']])
191
 
192
  # Filter to get identifiers
193
  filtered_id_df = sorted_df.copy()
@@ -195,8 +195,8 @@ def nuc_monitor(usr_start_date, usr_end_date, past_date, mongo_db_data):
195
  # I commented this out
196
  filtered_id_df = filtered_id_df.drop_duplicates(subset='identifier', keep='last')
197
 
198
- golfech_1 = filtered_id_df.copy()[(filtered_id_df.copy()["name"] == "GOLFECH 1") & (filtered_id_df.copy()["end_date"] >= start_date_str)]
199
- print(golfech_1[['updated_date', 'available_capacity']])
200
  # --------------------------- !!!!!!!!!!!!!!!!!!!!!!! HERE IS POTENTIAL ERROR!!!!!!!!!!!!!!!!!!!!!!! --------------------------- #
201
 
202
  filtered_id_df = filtered_id_df.copy().reset_index(drop=True)
 
186
 
187
  sorted_df = sorted_df.copy().reset_index(drop=True)
188
 
189
+ nogent_2 = sorted_df.copy()[(sorted_df.copy()["name"] == "NOGENT 2") & (sorted_df.copy()["end_date"] >= start_date_str)]
190
+ print(nogent_2[['updated_date', 'available_capacity']])
191
 
192
  # Filter to get identifiers
193
  filtered_id_df = sorted_df.copy()
 
195
  # I commented this out
196
  filtered_id_df = filtered_id_df.drop_duplicates(subset='identifier', keep='last')
197
 
198
+ nogent_2 = filtered_id_df.copy()[(filtered_id_df.copy()["name"] == "NOGENT 2") & (filtered_id_df.copy()["end_date"] >= start_date_str)]
199
+ print(nogent_2[['updated_date', 'available_capacity']])
200
  # --------------------------- !!!!!!!!!!!!!!!!!!!!!!! HERE IS POTENTIAL ERROR!!!!!!!!!!!!!!!!!!!!!!! --------------------------- #
201
 
202
  filtered_id_df = filtered_id_df.copy().reset_index(drop=True)