ready for testing
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m58s
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 13m25s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 26s

This commit is contained in:
2025-01-27 14:24:19 +01:00
parent 431ae7c670
commit 3605408ebb
11 changed files with 291 additions and 130 deletions

View File

@@ -2,7 +2,7 @@
from typing import Optional, Literal
from uuid import uuid4, UUID
from pydantic import BaseModel, Field
from pydantic import BaseModel, ConfigDict, Field
# Output to frontend
@@ -144,8 +144,4 @@ class Toilets(BaseModel) :
"""
return f'Toilets @{self.location}'
class Config:
"""
This allows us to easily convert the model to and from dictionaries
"""
from_attributes = True
model_config = ConfigDict(from_attributes=True)