From e8d9452cb687b382e9e2cf753543e8ec7011fe71 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sun, 24 Jan 2021 20:23:49 +0100
Subject: [PATCH] =?UTF-8?q?Jobs:=20Opraveno=20p=C5=99ed=C3=A1v=C3=A1n?=
=?UTF-8?q?=C3=AD=20suffixu=20p=C5=99ilo=C5=BEen=C3=A9ho=20souboru?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Download řešení se nejmenoval *.zip.
---
mo/jobs/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mo/jobs/__init__.py b/mo/jobs/__init__.py
index ba53c380..e3ce5140 100644
--- a/mo/jobs/__init__.py
+++ b/mo/jobs/__init__.py
@@ -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
--
GitLab