We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cead75c commit aaaeba4Copy full SHA for aaaeba4
openatlas/views/admin.py
@@ -825,11 +825,10 @@ def count_files_to_convert() -> int:
825
total_files = 0
826
converted_files = 0
827
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):
+ for id_, path in g.files.items():
+ if id_ in existing_files and path.suffix in g.display_file_ext:
831
total_files += 1
832
- if check_iiif_file_exist(file_id):
+ if check_iiif_file_exist(id_):
833
converted_files += 1
834
return total_files - converted_files
835
0 commit comments