From 60c9c9310140eb7b1b691eb0dd4daeeb39fbaaef Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Sun, 6 Jul 2025 01:30:12 +0100 Subject: [PATCH] fix pydantic warning on default values --- app/shared/user_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/shared/user_groups.py b/app/shared/user_groups.py index 039928d..9e1445a 100644 --- a/app/shared/user_groups.py +++ b/app/shared/user_groups.py @@ -44,12 +44,12 @@ class UserGroups: class GroupPermissions(BaseModel): - read: Set[str] | bool = Field(default_factory=list) + read: Set[str] | bool = Field(default_factory=set) read_public: bool = False archive_url: bool = False archive_sheet: bool = False manually_trigger_sheet: bool = False - sheet_frequency: Set[str] = Field(default_factory=list) + sheet_frequency: Set[str] = Field(default_factory=set) max_sheets: int = 0 max_archive_lifespan_months: int = 12 max_monthly_urls: int = 0