Skip to content

Commit

Permalink
fix VALID_IPS append
Browse files Browse the repository at this point in the history
  • Loading branch information
houshmand-2005 committed Jun 14, 2024
1 parent 1fa59c6 commit 120748c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/parse_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def parse_logs(log: str) -> dict[str, UserType] | dict: # pylint: disable
if data["IP_LOCATION"] != "None":
country = await check_ip(ip)
if country and country == data["IP_LOCATION"]:
VALID_IPS.append(country)
VALID_IPS.append(ip)
elif country and country != data["IP_LOCATION"]:
INVALID_IPS.add(ip)
continue
Expand Down

0 comments on commit 120748c

Please sign in to comment.