diff --git a/files/classes/votes.py b/files/classes/votes.py index 54ac59d883..67df64d475 100644 --- a/files/classes/votes.py +++ b/files/classes/votes.py @@ -16,6 +16,8 @@ class Vote(Base): real = Column(Boolean, default=True) created_utc = Column(Integer) + user = relationship("User") + def __init__(self, *args, **kwargs): if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time()) super().__init__(*args, **kwargs)