From aa6fd2b738895c0c2b103fdde3ec2ff9aeb77219 Mon Sep 17 00:00:00 2001 From: poka Date: Sat, 9 Sep 2023 13:26:27 +0200 Subject: [PATCH] antispam: improve condition --- lib/geolocProfiles.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/geolocProfiles.py b/lib/geolocProfiles.py index 4332e28..0777516 100755 --- a/lib/geolocProfiles.py +++ b/lib/geolocProfiles.py @@ -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"]