zhangyong 6 달 전
부모
커밋
0a84e9c2f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/sql_help.py

+ 1 - 1
common/sql_help.py

@@ -208,7 +208,7 @@ class sqlCollect():
         """
         获取feed流视频
         """
-        sql = f"""select video_id,channel,video_url,cover_url,title  from automator_feed_video where channel = %s and has_used = 0 and if_50_like = 1 limit 1"""
+        sql = f"""select video_id,channel,video_url,cover_url,title  from automator_feed_video where channel = %s and has_used = 0 and if_50_like = 1 ORDER BY create_time DESC limit 1"""
         data = AigcMysqlHelper.get_values(sql, (channel,))
         return data