Skip to content

Commit

Permalink
Remove call to generate_session_report() due to excessive load
Browse files Browse the repository at this point in the history
That func updates an Open States data quality table, which we do not actively use
  • Loading branch information
jessemortenson committed Oct 25, 2023
1 parent 8dedd71 commit d653e8c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d653e8c

Please sign in to comment.