Your Name 3 年之前
父节点
当前提交
37235b4cdb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      process_webp_from_db.py

+ 1 - 1
process_webp_from_db.py

@@ -7,7 +7,7 @@ import os
 db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57.cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
 db2 = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57.cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
 table=db2['_had']
-cursor=db.query('SELECT adid,adlogo_mobile FROM xoops._had where length(adlogo_mobile_webp)<5  order by adid desc limit 30;')
+cursor=db.query('SELECT adid,adlogo_mobile FROM xoops._had where length(adlogo_mobile_webp)<5  and adlogo_mobile not like "%.gif" order by adid desc limit 30;')
 for c in cursor:
 #    print(c['adid'])
     adid=c['adid']