This commit is contained in:
Aevann1 2021-08-06 14:25:00 +02:00
parent 94896056e1
commit f7d0dfff2d
3 changed files with 0 additions and 11 deletions

View file

@ -76,12 +76,6 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
uselist=False,
primaryjoin="Submission.is_approved==User.id")
# These are virtual properties handled as postgres functions server-side
# There is no difference to SQLAlchemy, but they cannot be written to
comment_count = Column(Integer, server_default=FetchedValue())
score = deferred(Column(Float, server_default=FetchedValue()))
awards = relationship("AwardRelationship", lazy="joined")
def __init__(self, *args, **kwargs):