RogerWork 2 months ago
parent 4854f237b7
commit 882f0fbfc6
  1. 2
      dspt_api/util/general/handle_redis.py

@ -29,6 +29,8 @@ def get_data_from_redis(redis_key):
resp = redis_data['handled_data']
print('handled_data', json.dumps(redis_data['handled_data']))
resp_result = resp['res']['status']
print('resp_result', resp_result)
print('resp_result-type', type(resp_result))
if str(resp_result) == '1':
print('get_data_from_redis-1')
resp_data = resp['res']['data'] if isinstance(resp['res']['data'], list) else [resp['res']['data']]

Loading…
Cancel
Save