Changes
Browse files
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 |
-
|
| 190 |
-
print(
|
| 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 |
-
|
| 199 |
-
print(
|
| 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)
|