mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2026-06-20 15:41:13 +00:00
When deleting unused templates, check whether template is a PSD file
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ for template in templates_db:
|
|||||||
download_file(path,outfn)
|
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]
|
templates_db=[root+"templates/"+_ for _ in templates_db]
|
||||||
|
|
||||||
for tpl in list(set(templates_local)-set(templates_db)):
|
for tpl in list(set(templates_local)-set(templates_db)):
|
||||||
|
|||||||
Reference in New Issue
Block a user