Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -282,7 +282,7 @@ elif menu == "Graph":
|
|
| 282 |
history_data = []
|
| 283 |
for record in st.session_state.history:
|
| 284 |
# Extract only the date part (YYYY-MM-DD) for display
|
| 285 |
-
date = record['Date']
|
| 286 |
for index, row in record['Summary'].iterrows():
|
| 287 |
for drink in row['Drinks'].split(', '):
|
| 288 |
history_data.append({'Date': date, 'Item': drink, 'Type': 'Drink'})
|
|
|
|
| 282 |
history_data = []
|
| 283 |
for record in st.session_state.history:
|
| 284 |
# Extract only the date part (YYYY-MM-DD) for display
|
| 285 |
+
date = record['Date']
|
| 286 |
for index, row in record['Summary'].iterrows():
|
| 287 |
for drink in row['Drinks'].split(', '):
|
| 288 |
history_data.append({'Date': date, 'Item': drink, 'Type': 'Drink'})
|