From 89c27292e63032d6bbbf0d66418bea4422d0b737 Mon Sep 17 00:00:00 2001 From: derekpierre Date: Wed, 4 Sep 2024 08:26:10 -0400 Subject: [PATCH] Add num missing text to ritual_state_check for missing transcripts/aggregations. --- scripts/ritual_state_check.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/ritual_state_check.py b/scripts/ritual_state_check.py index c6810623..8e489874 100644 --- a/scripts/ritual_state_check.py +++ b/scripts/ritual_state_check.py @@ -50,16 +50,23 @@ def print_ritual_state(ritual_id, coordinator) -> RitualState: ritual = coordinator.rituals(ritual_id) participants = coordinator.getParticipants(ritual_id) + num_missing = 0 if ritual.totalTranscripts < len(participants): print("\t(!) Missing transcripts") for participant in participants: if not participant.transcript: print(f"\t\t{participant.provider}") + num_missing += 1 + elif ritual.totalAggregations < len(participants): print("\t(!) Missing aggregated transcripts") for participant in participants: if not participant.aggregated: print(f"\t\t{participant.provider}") + num_missing += 1 + + if num_missing > 0: + print(f"\t\t> Num Missing: {num_missing}") return ritual_state