Browse Source

多样性

zhangbo 1 năm trước cách đây
mục cha
commit
445b9742ca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      alg_recsys_recall_shield_videos.py

+ 1 - 1
alg_recsys_recall_shield_videos.py

@@ -83,7 +83,7 @@ def main():
     key = "TAGS_FILTER_RULE_V1_JSON"
     with open('alg_recsys_recall_tags_videos.json', 'r') as f:
         json_read = json.load(f)
-        value = json.dump(json_read)
+        value = json.dumps(json_read)
     redis_helper.set_data_to_redis(key, value, expire_time)
     value_get = redis_helper.get_data_from_redis(key_name=key)
     print('key:', key, type(key))