This commit is contained in:
pengtao 2019-09-24 20:15:16 +08:00
parent 7bcf940e21
commit c1d84a8eec

View File

@ -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()