Explorar o código

기본 확장자 필터에 svg도 추가

잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
1c7cb0231e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      route/tool/func.py

+ 1 - 1
route/tool/func.py

@@ -362,7 +362,7 @@ def update(ver_num, set_data):
         if ver_num < 3170002:
             curs.execute(db_change("select html from html_filter where kind = 'extension'"))
             if not curs.fetchall():
-                for i in ['jpg', 'jpeg', 'png', 'gif', 'webp']:
+                for i in ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg']:
                     curs.execute(db_change("insert into html_filter (html, kind) values (?, 'extension')"), [i])
 
         if ver_num < 3170400: