Quellcode durchsuchen

update panini status modify 9.19.1

lei.chen vor 2 Monaten
Ursprung
Commit
293ae952ae
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      panini_coming_soon_spider/panini_coming_soon_list.py

+ 1 - 1
panini_coming_soon_spider/panini_coming_soon_list.py

@@ -281,7 +281,7 @@ def coming_main(log):
         parse_data(log, resp_json_str, sql_pool)
 
         # 查询数据库中 status 为1的数据
-        sql_url_key = sql_pool.select_all("select url_key from panini_coming_soon_list where status in(0,1)")
+        sql_url_key = sql_pool.select_all("select url_key from panini_coming_soon_list where status != 2")
         sql_url_key = [i[0] for i in sql_url_key]
         if not sql_url_key:
             log.info("没有需要处理的数据")