mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2026-02-16 02:20:49 +00:00
When deleting unused templates, check whether template is a PSD file
This commit is contained in:
@@ -142,7 +142,7 @@ for template in templates_db:
|
||||
download_file(path,outfn)
|
||||
|
||||
|
||||
templates_local=[_ for _ in glob.glob(root + 'templates/file/**/*', recursive=True)]
|
||||
templates_local=[_ for _ in glob.glob(root + 'templates/file/**/*', recursive=True) if _.endswith(".psd")]
|
||||
templates_db=[root+"templates/"+_ for _ in templates_db]
|
||||
|
||||
for tpl in list(set(templates_local)-set(templates_db)):
|
||||
@@ -180,4 +180,4 @@ find_and_replace('code/pp/pp.js','"templates/?type="','"templates/index.html?typ
|
||||
find_and_replace('code/pp/pp.js','"https://f000.backblazeb2.com/file/"', '"templates/file/"')
|
||||
|
||||
# Having ? in static sites doesn't really work
|
||||
#find_and_replace("templates/index.html",'sch.split("?");','sch.split("#");')
|
||||
#find_and_replace("templates/index.html",'sch.split("?");','sch.split("#");')
|
||||
|
||||
Reference in New Issue
Block a user