Skip to content

Commit

Permalink
Merge pull request #667 from evidencebp/master
Browse files Browse the repository at this point in the history
Pylint alerts corrections as part of intervention experiment
  • Loading branch information
yigitguler authored Oct 15, 2024
2 parents 681466c + 547cf0c commit 5e6782c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ def _country_filter(src, scope, out):
def filter(entry, item):
matching = entry["country"]

if item == matching or item == matching.lower() or item == matching.upper():
return True

else:
return False
return item == matching or item == matching.lower() or item == matching.upper()

return [entry for entry in src if filter(entry, scope)]

Expand Down

0 comments on commit 5e6782c

Please sign in to comment.