Commit 2da5ccaa authored by 赵威's avatar 赵威

update db

parent 6737a753
......@@ -12,8 +12,7 @@ def get_device_dict_from_redis():
"""
return: {device_id: {first_demands: [], city_first: ""}}
"""
# TODO
db_key = "cvr:db:device2"
db_key = "cvr:db:device"
column_key = db_key + ":column"
columns = str(redis_db_client.get(column_key), "utf-8").split("|")
d = redis_db_client.hgetall(db_key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment