Skip to content

Commit aaaeba4

Browse files
Formatting
1 parent cead75c commit aaaeba4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

openatlas/views/admin.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,10 @@ def count_files_to_convert() -> int:
825825
total_files = 0
826826
converted_files = 0
827827
existing_files = [entity.id for entity in Entity.get_by_class('file')]
828-
for file_id, file_path in g.files.items():
829-
if (file_id in existing_files and
830-
file_path.suffix in g.display_file_ext):
828+
for id_, path in g.files.items():
829+
if id_ in existing_files and path.suffix in g.display_file_ext:
831830
total_files += 1
832-
if check_iiif_file_exist(file_id):
831+
if check_iiif_file_exist(id_):
833832
converted_files += 1
834833
return total_files - converted_files
835834

0 commit comments

Comments
 (0)