mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix gallery delete and save
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -180,6 +180,8 @@ def save_files(js_data, files, html_info, index):
|
||||
if index < len(files):
|
||||
files = [files[index]]
|
||||
start_index = index
|
||||
elif len(files) == 1:
|
||||
start_index = 0
|
||||
else:
|
||||
log.error(f'Save: index={index} first={p.index_of_first_image} files={len(files)} out of range')
|
||||
files = []
|
||||
|
||||
Reference in New Issue
Block a user