new features

This commit is contained in:
Daniil
2026-02-27 23:33:56 +03:00
parent 937e58859a
commit dc04efe0fb
41 changed files with 2067 additions and 141 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Storage utility helpers."""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from cpv3.modules.users.models import User
def get_user_folder(user: User) -> str:
"""Return the per-user S3 folder prefix: ``<username>_<user_id>``."""
return f"{user.username}_{user.id}"