Skip to content
Snippets Groups Projects
Commit e8d9452c authored by Martin Mareš's avatar Martin Mareš
Browse files

Jobs: Opraveno předávání suffixu přiloženého souboru

Download řešení se nejmenoval *.zip.
parent f70e1150
Branches
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class TheJob:
def attach_file(self, tmp_name: str, suffix: str):
"""Vytvoří hardlink na daný pracovní soubor v adresáři jobů."""
full_name = mo.util.link_to_dir(tmp_name, mo.util.data_dir('jobs'))
full_name = mo.util.link_to_dir(tmp_name, mo.util.data_dir('jobs'), suffix=suffix)
name = os.path.basename(full_name)
logger.debug(f'Job: Příloha {tmp_name} -> {name}')
return name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment