Fixing build
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user