From 76b3fc948c3032296797182476efd04fd7806a69 Mon Sep 17 00:00:00 2001 From: Sweaty Handshake Date: Tue, 7 Jan 2025 18:12:15 +0000 Subject: [PATCH] Make sure townships are only defined as intended --- socrata/socrata_upload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/socrata/socrata_upload.py b/socrata/socrata_upload.py index 7abb1aac3..eac5fb774 100644 --- a/socrata/socrata_upload.py +++ b/socrata/socrata_upload.py @@ -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(