From 8ac43826dc6938df1bd7d8fb6b602b4c0fc2cb9a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 27 Oct 2020 13:38:03 +0100 Subject: [PATCH] [Model] Event has userid not user --- flaschengeist/system/models/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flaschengeist/system/models/event.py b/flaschengeist/system/models/event.py index 5a28ee8..c187bbe 100644 --- a/flaschengeist/system/models/event.py +++ b/flaschengeist/system/models/event.py @@ -45,7 +45,7 @@ class Event(db.Model, ModelSerializeMixin): class Job(db.Model, ModelSerializeMixin): __tablename__ = "job" - user: str = None + userid: str = None value: float = db.Column(db.Numeric(precision=3, scale=2)) _id = db.Column("id", db.Integer, primary_key=True) @@ -55,7 +55,7 @@ class Job(db.Model, ModelSerializeMixin): _slot = db.relationship("JobSlot") @property - def user(self): + def userid(self): return self._user.userid