Vetsi sada zmen

This commit is contained in:
Michal Kváček
2023-08-21 22:45:33 +02:00
parent 33e0a35f4b
commit 9314d31186
22 changed files with 352 additions and 201 deletions
+3 -2
View File
@@ -6,10 +6,11 @@ import exif
from PIL import Image, UnidentifiedImageError
from strawberry.file_uploads import Upload
from config import API_URL
def get_public_url(filename: Optional[str]):
# TODO: pouzit staticfiles z /uploads - port na API, nginx nebude potreba (pro dev)
return f"http://localhost:8999/{filename}" if filename else None
return f"{API_URL}/uploads/{filename}" if filename else None
def check_directories(path: str):