Uprava struktury letu a fotky, uprava GPS pozic v DB

This commit is contained in:
Michal Kváček
2023-07-03 13:23:59 +02:00
parent ba5c3b6a49
commit f8245492b9
18 changed files with 277 additions and 77 deletions
+5
View File
@@ -1,9 +1,14 @@
import os
import uuid
from typing import Optional
from strawberry.file_uploads import Upload
def get_public_url(filename: Optional[str]):
return f"http://localhost:8000/uploads/{filename}" if filename else None
def check_directories(path: str):
if not os.path.isdir(path):
os.makedirs(path)