fix error when no weeklys due that day
@@ -44,6 +44,9 @@ def show_incomplete_weekly_checks(connection):
columns=["instructions", "task", "due", "comment"]
)
incomplete_weekly = incomplete_weekly.reset_index(drop=True)
+ if incomplete_weekly.empty:
+ st.write("No weekly chart checks due today.")
+ st.stop()
return incomplete_weekly
@@ -114,9 +117,6 @@ def compare_all_incompletes(incomplete_qcls):
return all_planned, all_delivered, overall_results
- else:
- return None, None, "No weeklys due today, but thanks for trying."
-
def plot_couch_positions(delivered):
delivered = delivered.drop_duplicates(subset=["fx"])
