From 0c566cfbde01027829f085cf2274a258a1a9d49b Mon Sep 17 00:00:00 2001 From: Sli Date: Wed, 24 Jul 2024 00:37:35 +0200 Subject: [PATCH] Add picture size in sas api --- sas/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sas/schemas.py b/sas/schemas.py index 4e0ffc90..a8e74d20 100644 --- a/sas/schemas.py +++ b/sas/schemas.py @@ -17,7 +17,7 @@ class PictureFilterSchema(FilterSchema): class PictureSchema(ModelSchema): class Meta: model = Picture - fields = ["id", "name", "date"] + fields = ["id", "name", "date", "size"] author: SimpleUserSchema = Field(validation_alias="owner") full_size_url: str