From 9031b35cc7ae2feec6edd306be1d7305831828d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Sun, 13 Nov 2022 21:07:06 +0100 Subject: [PATCH] Moving Tags.pre_process_file a bit up --- .github/calculate_db.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/calculate_db.py b/.github/calculate_db.py index 3406c5c3c..8929b466e 100755 --- a/.github/calculate_db.py +++ b/.github/calculate_db.py @@ -466,6 +466,9 @@ def create_db(folder, options, tags): zip_creators = [] stored_folders = [] + for file in db_finder.find_all(): + tags.pre_process_file(file) + if options['zips_config'] != '': print('reading zips_config: ' + options['zips_config']) with open(options['zips_config']) as zips_config_file: @@ -681,11 +684,7 @@ def create_summary(finder: Finder, tags: Tags, source): 'folders': dict() } - files = finder.find_all() - for file in files: - tags.pre_process_file(file) - - for file in files: + for file in finder.find_all(): strfile = str(file) summary['folders'][str(file.parent)] = {"path": file.parent}