We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696ef98 commit 9c44544Copy full SHA for 9c44544
1 file changed
src/election_anomaly/__init__.py
@@ -1044,9 +1044,9 @@ def bar(
1044
print("Data not created.")
1045
return
1046
jurisdiction_id = db.name_to_id(self.session, "ReportingUnit", jurisdiction)
1047
- most_granular_id = db.name_to_id(
1048
- self.session, "ReportingUnitType", d["sub_reporting_unit_type"]
1049
- )
+ # for now, bar charts can only handle jurisdictions where county is one level
+ # down from the jurisdiction
+ most_granular_id = db.name_to_id( self.session, "ReportingUnitType", "county")
1050
hierarchy = db.get_jurisdiction_hierarchy(
1051
self.session, jurisdiction_id, most_granular_id
1052
)
0 commit comments