Compare commits

..

2 commits

Author SHA1 Message Date
5a5b936f32 fixed tmp dir 2025-05-23 16:32:49 +02:00
52b9729d0a fixed log folder 2025-05-23 16:28:06 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ from pathlib import Path
from config import LOG_LEVEL
LOGS_DIR = Path("/var", "logs", "menu-creche")
LOGS_DIR = Path("/var", "log", "menu-creche")
LOGS_DIR.mkdir(parents=True, exist_ok=True)

View file

@ -6,7 +6,7 @@ import requests
def download(
url: str,
destination_folder: Path = Path(tempfile.mkdtemp()),
destination_folder: Path = Path(tempfile.gettempdir()),
file_name: str = "file.pdf",
) -> Path:
response = requests.get(url)