|
@@ -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')
|
|
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')
|
|
db2 = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57.cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
|
|
table=db2['_had']
|
|
table=db2['_had']
|
|
-cursor=db.query('SELECT adid,adlogo_mobile FROM xoops._had where length(adlogo_mobile_webp)<5 order by adid desc limit 100;')
|
|
|
|
|
|
+cursor=db.query('SELECT adid,adlogo_mobile FROM xoops._had where length(adlogo_mobile_webp)<5 order by adid desc limit 10;')
|
|
for c in cursor:
|
|
for c in cursor:
|
|
# print(c['adid'])
|
|
# print(c['adid'])
|
|
adid=c['adid']
|
|
adid=c['adid']
|
|
@@ -21,6 +21,7 @@ for c in cursor:
|
|
mobile_h_url+=".webp"
|
|
mobile_h_url+=".webp"
|
|
sqlcmd='update _had set adlogo_mobile_webp="'+mobile_h_url+'" where adid="'+str(adid)+'"'
|
|
sqlcmd='update _had set adlogo_mobile_webp="'+mobile_h_url+'" where adid="'+str(adid)+'"'
|
|
print(sqlcmd)
|
|
print(sqlcmd)
|
|
|
|
+ db2.query(sqlcmd)
|
|
# db2.query()
|
|
# db2.query()
|
|
- break
|
|
|
|
|
|
+# break
|
|
|
|
|