antispam: improve condition
This commit is contained in:
parent
676fbbfa9b
commit
aa6fd2b738
|
@ -1,4 +1,4 @@
|
|||
import requests
|
||||
import requests, sys
|
||||
from time import time
|
||||
from lib.cesiumCommon import CesiumCommon
|
||||
from lib.gvaWallets import ListWallets
|
||||
|
@ -78,10 +78,17 @@ class GeolocProfiles(CesiumCommon):
|
|||
for profile in cesiumProfiles:
|
||||
source = profile["_source"]
|
||||
pubkey = profile["_id"]
|
||||
# if pubkey == "JEGCJSfKbFyxUnnHBQUqe9U4fhMMpdWvr7zdU56EZHsa":
|
||||
# print(pubkey)
|
||||
# sys.exit(0)
|
||||
|
||||
if pubkey not in gvaProfiles:
|
||||
continue
|
||||
|
||||
try:
|
||||
isMember = gvaProfiles[pubkey]["id"]["isMember"]
|
||||
except:
|
||||
continue
|
||||
isMember = False
|
||||
|
||||
try:
|
||||
userId = gvaProfiles[pubkey]["id"]["username"]
|
||||
|
|
Loading…
Reference in New Issue