From bc209603cae14cd2760149e1d2ecf72610f1adb1 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Tue, 10 Dec 2024 16:04:58 +0100 Subject: [PATCH] feat: Add `preparation_state` to feedback email The preparation state was not part of the email, only the state. --- backend/capellacollab/feedback/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/capellacollab/feedback/models.py b/backend/capellacollab/feedback/models.py index 1ffd0a158..19e469926 100644 --- a/backend/capellacollab/feedback/models.py +++ b/backend/capellacollab/feedback/models.py @@ -57,7 +57,12 @@ class AnonymizedSession(core_pydantic.BaseModel): version: tools_models.MinimalToolVersionWithTool - state: str = pydantic.Field(default="UNKNOWN") + preparation_state: sessions_models.SessionPreparationState = ( + pydantic.Field(default=sessions_models.SessionPreparationState.UNKNOWN) + ) + state: sessions_models.SessionState = pydantic.Field( + default=sessions_models.SessionState.UNKNOWN + ) warnings: list[core_models.Message] = pydantic.Field(default=[]) connection_method: (