Skip to content

Commit

Permalink
Make sure townships are only defined as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
wrridgeway committed Jan 7, 2025
1 parent e8873b1 commit 76b3fc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions socrata/socrata_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def generate_groups(athena_asset, years=None, by_township=False):
.to_list()
)

# Ensure township codes aren't available if they shouldn't be
township_codes = None
if by_township:
township_codes = (
cursor.execute(
Expand Down

0 comments on commit 76b3fc9

Please sign in to comment.