Fixing build

This commit is contained in:
Mistral Vibe
2026-04-10 10:23:32 +02:00
parent 6f77bb8c42
commit 411414b9c1
35 changed files with 141 additions and 134 deletions

View File

@@ -1,8 +1,7 @@
import uuid
from datetime import datetime
from typing import Any
from pydantic import BaseModel, ConfigDict, EmailStr, model_validator
from pydantic import BaseModel, ConfigDict, EmailStr
class MemberBase(BaseModel):
@@ -23,7 +22,7 @@ class MemberRead(MemberBase):
def from_model(cls, m: object) -> "MemberRead":
obj = cls.model_validate(m)
obj.nc_configured = bool(
getattr(m, "nc_url") and getattr(m, "nc_username") and getattr(m, "nc_password")
m.nc_url and m.nc_username and m.nc_password
)
return obj