Uprava struktury letu a fotky, uprava GPS pozic v DB
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user