Spaces:
Runtime error
Runtime error
selfitcamera
commited on
Commit
Β·
234514c
1
Parent(s):
c1f7eaa
update
Browse files
utils.py
CHANGED
@@ -134,7 +134,7 @@ def check_func(ip):
|
|
134 |
ret = requests.get(f"https://webapi-pc.meitu.com/common/ip_location?ip={ip}")
|
135 |
for k in ret.json()['data']:
|
136 |
nat = ret.json()['data'][k]['nation']
|
137 |
-
if nat in Regions:
|
138 |
print(nat, 'invalid')
|
139 |
return False
|
140 |
else:
|
|
|
134 |
ret = requests.get(f"https://webapi-pc.meitu.com/common/ip_location?ip={ip}")
|
135 |
for k in ret.json()['data']:
|
136 |
nat = ret.json()['data'][k]['nation']
|
137 |
+
if nat.lower() in Regions.lower():
|
138 |
print(nat, 'invalid')
|
139 |
return False
|
140 |
else:
|