Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,10 +52,12 @@ def main(files):
|
|
| 52 |
|
| 53 |
# remove stuff at the bottom
|
| 54 |
try:
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
| 56 |
except ValueError:
|
| 57 |
-
last_row = schedule
|
| 58 |
-
|
| 59 |
|
| 60 |
schedule = schedule.iloc[:last_row].reset_index(drop=True)
|
| 61 |
|
|
|
|
| 52 |
|
| 53 |
# remove stuff at the bottom
|
| 54 |
try:
|
| 55 |
+
try:
|
| 56 |
+
last_row = schedule.iloc[:, 0].tolist().index("Schedule Notes:")
|
| 57 |
+
except ValueError:
|
| 58 |
+
last_row = schedule.iloc[:, 0].tolist().index("Phone Numbers")
|
| 59 |
except ValueError:
|
| 60 |
+
last_row = len(schedule) + 1
|
|
|
|
| 61 |
|
| 62 |
schedule = schedule.iloc[:last_row].reset_index(drop=True)
|
| 63 |
|