Commit ea27459c authored by 张彦钊's avatar 张彦钊

add

parent 78738037
...@@ -94,6 +94,6 @@ rule = {"t1_"+str(sorted(boniaosuan)):1, ...@@ -94,6 +94,6 @@ rule = {"t1_"+str(sorted(boniaosuan)):1,
"t4_" + str(sorted(xiongbu)): 3 "t4_" + str(sorted(xiongbu)): 3
} }
tag_value["sort_rule"] = rule tag_value["sort_rule"] = json.dumps(rule)
r = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN6@172.16.40.133:6379') r = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN6@172.16.40.133:6379')
r.hmset(tag_key,tag_value) r.hmset(tag_key,tag_value)
\ No newline at end of file
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