feat(submissions): show all submissions for admin

This commit is contained in:
2026-10-16 02:11:04 +02:00
parent bfaef2e402
commit a110575e0a
6 changed files with 69 additions and 7 deletions
+5
View File
@@ -71,7 +71,12 @@ class SubmissionFileOut(Schema):
class SubmissionOut(Schema):
id: UUID
scope_id: UUID
username: str | None = None
notes: str | None = None
files: list[SubmissionFileOut] = []
created_at: datetime
updated_at: datetime
@staticmethod
def resolve_username(obj) -> str | None:
return obj.user.username if obj.user else None