Skip to content

Commit 86a9d8d

Browse files
author
Eric Tsai
committed
removed top counts by vote type
1 parent 8a90c14 commit 86a9d8d

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/election_anomaly/__init__.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -941,27 +941,6 @@ def display_options(self, input: str, verbose: bool=False, filters: list=None):
941941
return results
942942
return None
943943

944-
def top_counts_by_vote_type(self, election: str, rollup_unit: str, sub_unit: str) -> str:
945-
d, error = ui.get_runtime_parameters(
946-
["rollup_directory"], param_file="run_time.ini", header="election_anomaly"
947-
)
948-
if error:
949-
err_str = (
950-
f"Parameter file missing requirements.\n{error}\nNo results exported"
951-
)
952-
print(err_str)
953-
else:
954-
connection = self.session.bind.raw_connection()
955-
cursor = connection.cursor()
956-
rollup_unit_id = db.name_to_id(self.session, "ReportingUnit", rollup_unit)
957-
sub_unit_id = db.name_to_id(self.session, "ReportingUnitType", sub_unit)
958-
election_id = db.name_to_id(self.session, "Election", election)
959-
err_str = a.create_rollup(
960-
cursor, d["rollup_directory"], rollup_unit_id, sub_unit_id, election_id
961-
)
962-
connection.close()
963-
return err_str
964-
965944
def scatter(
966945
self,
967946
jurisdiction: str,

0 commit comments

Comments
 (0)