Your Name 3 år sedan
förälder
incheckning
96eb50475d
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      process_webp_from_db.py

+ 1 - 0
process_webp_from_db.py

@@ -18,6 +18,7 @@ for c in cursor:
     print(cmd)
     os.system(cmd)
     mobile_h_url=mobile_h.replace('/home/hhh-images/','https://images.hhh.com.tw/')
+    mobile_h_url+=".webp"
     sqlcmd='update _had set adlogo_mobile_webp="'+mobile_h_url+'" where adid="'+str(adid)+'"'
     print(sqlcmd)
 #    db2.query()