Compare commits
2 commits
4eedb8010c
...
5a5b936f32
Author | SHA1 | Date | |
---|---|---|---|
5a5b936f32 | |||
52b9729d0a |
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue