def check_and_save_morethan100zan_duanzi(floor, content): if floor is not None and content is not None: todaystr = date_str_now_ymd() if not r.hexists(duanzi_more_than_100_zan_floor_hash, floor): r.hset(duanzi_more_than_100_zan_floor_hash, floor, True) r.lpush(duanzi_more_than_100_zan_list_pre + todaystr, content) pass pass
def add_duanzi_json_to_all_duanzi_json_data(floor, json_str): r.hset(all_floor_duanzi_hash_name, floor, json_str) pass