From f79fb803ae758bdb4c36bacdcfb752d6ada427b1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Jul 2022 08:16:26 +0200 Subject: [PATCH] fix 500 error --- files/classes/votes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/votes.py b/files/classes/votes.py index 54ac59d88..67df64d47 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)