罗俊辉 1 rok pred
rodič
commit
f1bc8ef9b0
3 zmenil súbory, kde vykonal 10 pridanie a 6 odobranie
  1. 8 4
      applications/config.py
  2. 1 1
      applications/migrate.py
  3. 1 1
      deal/videos_deal.py

+ 8 - 4
applications/config.py

@@ -353,11 +353,15 @@ gh_id_dict = {
 }
 
 # 配置的小程序config
+# minigram_info = {
+#     "avatar_url": "https://rescdn.yishihui.com/0temp/lehuo.png",
+#     "mid": "wxe8f8f0e23cecad0f",
+#     "name": "票圈乐活"
+# }
 minigram_info = {
-    "avatar_url": "https://rescdn.yishihui.com/0temp/lehuo.png",
-    "mid": "wxe8f8f0e23cecad0f",
-    "name": "票圈乐活"
+    "avatar_url": "https://rescdn.yishihui.com/0temp/ssyqsh.png",
+    "mid": "wx59d9e2c05f00f880",
+    "name": "刷刷有趣生活"
 }
-
 # db_config
 db_config = "video_to_articles"

+ 1 - 1
applications/migrate.py

@@ -26,7 +26,7 @@ def migrate_daily(dt):
     print("{} successfully insert {} rows, totally cost {} seconds".format(dt, len(data), b - a))
 
 
-dt_list = generate_daily_strings("20240618", "20240618")
+dt_list = generate_daily_strings("20240619", "20240627")
 for dt in dt_list:
     print(dt)
     migrate_daily(dt)

+ 1 - 1
deal/videos_deal.py

@@ -78,7 +78,7 @@ class VideoDeal(object):
         from top_return_daily 
         where dt >= '{self.start_dt}' and dt < '{self.end_dt}' 
         order by return_ DESC
-        limit {self.topN}
+        limit {self.topN};
         """
         result_list = await self.mysql_client.select(sql)
         return self.response_obj(result_list)