From d653e8ccb7a688aa35179beb1a2299136e9cb8c2 Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Wed, 25 Oct 2023 12:41:03 -0500 Subject: [PATCH] Remove call to generate_session_report() due to excessive load That func updates an Open States data quality table, which we do not actively use --- app.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app.py b/app.py index 1cb5a1b..debe812 100644 --- a/app.py +++ b/app.py @@ -302,10 +302,3 @@ def do_import(jurisdiction_id: str, datadir: str) -> None: Jurisdiction.objects.filter(id=jurisdiction_id).update( latest_bill_update=datetime.datetime.utcnow() ) - - # compile info on all sessions that were updated in this run - seen_sessions = set() - seen_sessions.update(bill_importer.get_seen_sessions()) - seen_sessions.update(vote_event_importer.get_seen_sessions()) - for session in seen_sessions: - generate_session_report(session)