KeyStone commited on
Commit ·
a5b18cf
1
Parent(s): 6d6be4b
chore: update storage paths to dpv007/kystn/data structure
Browse files
backend/app/services/storage.py
CHANGED
|
@@ -41,15 +41,15 @@ def _get_hf_client():
|
|
| 41 |
|
| 42 |
def _originals_path(user_id: str, photo_id: str, filename: str) -> str:
|
| 43 |
ext = PurePosixPath(filename).suffix.lower()
|
| 44 |
-
return f"originals/{user_id}/{photo_id}{ext}"
|
| 45 |
|
| 46 |
|
| 47 |
def _thumbnails_path(user_id: str, photo_id: str) -> str:
|
| 48 |
-
return f"thumbnails/{user_id}/{photo_id}.jpg"
|
| 49 |
|
| 50 |
|
| 51 |
def _previews_path(user_id: str, photo_id: str) -> str:
|
| 52 |
-
return f"previews/{user_id}/{photo_id}.jpg"
|
| 53 |
|
| 54 |
|
| 55 |
async def upload_original(
|
|
|
|
| 41 |
|
| 42 |
def _originals_path(user_id: str, photo_id: str, filename: str) -> str:
|
| 43 |
ext = PurePosixPath(filename).suffix.lower()
|
| 44 |
+
return f"dpv007/kystn/data/originals/{user_id}/{photo_id}{ext}"
|
| 45 |
|
| 46 |
|
| 47 |
def _thumbnails_path(user_id: str, photo_id: str) -> str:
|
| 48 |
+
return f"dpv007/kystn/data/thumbnails/{user_id}/{photo_id}.jpg"
|
| 49 |
|
| 50 |
|
| 51 |
def _previews_path(user_id: str, photo_id: str) -> str:
|
| 52 |
+
return f"dpv007/kystn/data/previews/{user_id}/{photo_id}.jpg"
|
| 53 |
|
| 54 |
|
| 55 |
async def upload_original(
|