Commit f79ca48c authored by lixiaofang's avatar lixiaofang

auto_vest

parent af888fc7
......@@ -22,7 +22,7 @@ def comment(card_info):
redis_data['comment'] = click_num
redis_client.set(key, json.dumps(redis_data))
else:
redis_data = {"click": 1, "follow": 0, "comment": 0}
redis_data = {"click": 0, "follow": 0, "comment": 1}
redis_client.set(key, json.dumps(redis_data))
redis_client.expire(key, time=24 * 60 * 60)
......
......@@ -21,7 +21,7 @@ def follow(card_info):
redis_data['follow'] = click_num
redis_client.set(key, json.dumps(redis_data))
else:
redis_data = {"click": 1, "follow": 0, "comment": 0}
redis_data = {"click": 0, "follow": 1, "comment": 0}
redis_client.set(key, json.dumps(redis_data))
redis_client.expire(key, time=24 * 60 * 60)
......
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