renyupeng 1 year ago
parent
commit
1fe760fe56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Apietl/task/signature_photo_Id.py

+ 1 - 1
Apietl/task/signature_photo_Id.py

@@ -24,7 +24,7 @@ class signature_photo_Id:
         replace into media_api.signature_photo_id
     select signature,photo_id,photo_name,channel_type
     from                      media_api.kuaishou_video_list
-    where signature is not null and photo_id is not null and stat_date>=date_format(date_sub(now(),interval 40 day),'%Y-%m-%d')
+    where signature is not null and photo_id is not null and date_format(stat_date,'%Y%m%d')>=date_format(date_sub(now(),interval 2 day),'%Y%m%d')
     group by signature,photo_id
     """
             print(sql)