remotes/1693045480750635534/spooky-22
Aevann1 2022-02-07 17:53:16 +02:00
parent a6beef77df
commit f81be32791
1 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ class Vote(Base):
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
real = Column(Boolean, default=True)
user = relationship("User", viewonly=True)
post = relationship("Submission", viewonly=True)
user = relationship("User", lazy="subquery", viewonly=True)
post = relationship("Submission", lazy="subquery", viewonly=True)
def __init__(self, *args, **kwargs):
@ -56,8 +56,8 @@ class CommentVote(Base):
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
real = Column(Boolean, default=True)
user = relationship("User")
comment = relationship("Comment")
user = relationship("User", lazy="subquery")
comment = relationship("Comment", lazy="subquery", viewonly=True)
def __init__(self, *args, **kwargs):