Browse Source

早安内容定时上推荐实验扩量

zhangliang 3 weeks ago
parent
commit
f77b5ed7b7
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 1 1
      workers/select_spider_work.py

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+.idea

+ 1 - 1
workers/select_spider_work.py

@@ -25,7 +25,7 @@ def bot_get_video_id():
         if not data:
             return
         data = [json.dumps(item) for item in data]
-        random_sample = random.sample(data, 13)
+        random_sample = random.sample(data, 26)
         RedisHelper().get_client().rpush(redis_task, *random_sample)
         logger.info(f"[R] 早上好数据写入Redis 成功 共写入 {len(random_sample)} 条")
         remaining_data = [item for item in data if item not in random_sample]