Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Jan 2, 2025
1 parent cead75c commit aaaeba4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openatlas/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,11 +825,10 @@ def count_files_to_convert() -> int:
total_files = 0
converted_files = 0
existing_files = [entity.id for entity in Entity.get_by_class('file')]
for file_id, file_path in g.files.items():
if (file_id in existing_files and
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:
total_files += 1
if check_iiif_file_exist(file_id):
if check_iiif_file_exist(id_):
converted_files += 1
return total_files - converted_files

Expand Down

0 comments on commit aaaeba4

Please sign in to comment.