Skip to content

Commit

Permalink
get tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Jan 29, 2024
1 parent 807da8c commit 2712c5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/charity_django/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.2"
__version__ = "0.13.3"
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ def handle(self, *args, **options):
)
for row in tqdm.tqdm(reader, desc="Reading CSV"):
record = self.parse_row(row)
if options["include"] and record["ENTITYCD"] not in options["include"]:
if options.get("include") and record["ENTITYCD"] not in options.get(
"include", []
):
continue
if options["exclude"] and record["ENTITYCD"] in options["exclude"]:
if options.get("exclude") and record["ENTITYCD"] in options.get(
"exclude", []
):
continue

if record["GEOGCD"] not in records:
Expand Down

0 comments on commit 2712c5f

Please sign in to comment.