diff --git a/service/db/datamodels/schedule.py b/service/db/datamodels/schedule.py index bf1372b..16a38a4 100644 --- a/service/db/datamodels/schedule.py +++ b/service/db/datamodels/schedule.py @@ -108,7 +108,7 @@ def to_db(self) -> Any: return { "FK_announcement_id": self.announcement.id, "scope": self.scope.value, - "type": self.type, + "type": self.type.name, "server": self.server, "persona": self.persona, "time": self.time.isoformat(),