fix bug
This commit is contained in:
parent
7bcf940e21
commit
c1d84a8eec
@ -17,7 +17,8 @@ redis_key = f"ad::jumpRecording"
|
||||
|
||||
def write2tga(data):
|
||||
print(f"3 {data}")
|
||||
for gameid in data.keys():
|
||||
new = json.loads(data)
|
||||
for gameid in new.keys():
|
||||
g = GetTgaConfig()
|
||||
item = g.get_api_key(gameid)
|
||||
if not item.get('appid', None):
|
||||
@ -66,8 +67,7 @@ def get_from_redis():
|
||||
try:
|
||||
one = json.loads(json.loads(one))
|
||||
item = one['gameid']
|
||||
pdb.set_trace()
|
||||
data[item].add(one)
|
||||
data[item].add(json.dumps(one))
|
||||
except Exception:
|
||||
log.error(f"get wrong values {one}", exc_info=True)
|
||||
pdb.set_trace()
|
||||
|
Loading…
x
Reference in New Issue
Block a user