Skip to content
Snippets Groups Projects
Commit 21ab8e8f authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

don't duplicate filename issues

parent bf08b27a
No related branches found
No related tags found
1 merge request!4Release
Pipeline #12649 passed
...@@ -1081,6 +1081,8 @@ class Command(BaseCommand): ...@@ -1081,6 +1081,8 @@ class Command(BaseCommand):
continue continue
at_least_one_incorrect_filename = False
for file_key, file_value in file_data.items(): for file_key, file_value in file_data.items():
file_key = file_key.strip() file_key = file_key.strip()
...@@ -1090,6 +1092,8 @@ class Command(BaseCommand): ...@@ -1090,6 +1092,8 @@ class Command(BaseCommand):
if not isinstance(file_value, str): if not isinstance(file_value, str):
observed_issues_count += 1 observed_issues_count += 1
contract.notes += f"Špatně zadaný název souboru {file_key}: {file_value}.\n" contract.notes += f"Špatně zadaný název souboru {file_key}: {file_value}.\n"
if not at_least_one_incorrect_filename:
issues.append( issues.append(
self.use_issue("Neplatný název souboru") self.use_issue("Neplatný název souboru")
) )
...@@ -1101,6 +1105,8 @@ class Command(BaseCommand): ...@@ -1101,6 +1105,8 @@ class Command(BaseCommand):
) )
) )
at_least_one_incorrect_filename = True
continue continue
file_path = os.path.join(contract_root, file_value) file_path = os.path.join(contract_root, file_value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment