zhangyong 9 ماه پیش
والد
کامیت
b4d8351c0d
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      common/sql_help.py
  2. 1 1
      data_channel/kuaishouchuangzuozhe.py

+ 1 - 1
common/sql_help.py

@@ -70,7 +70,7 @@ class sqlCollect():
     判断该任务id是否用过
     """
     @classmethod
-    def is_used(cls, photo_id):
+    def ks_is_used(cls, photo_id):
         sql = """
                 SELECT photo_id
                 FROM ks_category_video

+ 1 - 1
data_channel/kuaishouchuangzuozhe.py

@@ -244,7 +244,7 @@ class KsFeedVideo:
                 feeds = feed_data['feeds']
                 for feed in feeds:
                     photo_id = feed["photo_id"]  # 视频ID
-                    status = sqlCollect.is_used(photo_id)
+                    status = sqlCollect.ks_is_used(photo_id)
                     if status:
                         continue
                     user_name = feed["user_name"]  # 用户名