remotes/1693045480750635534/spooky-22
Aevann1 2021-08-06 14:25:00 +02:00
parent 3222d61b11
commit 05b9a66f0a
3 changed files with 0 additions and 11 deletions

View File

@ -71,10 +71,6 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
awards = relationship("AwardRelationship", lazy="joined")
# These are virtual properties handled as postgres functions server-side
# There is no difference to SQLAlchemy, but they cannot be written to
score = deferred(Column(Integer, server_default=FetchedValue()))
def __init__(self, *args, **kwargs):
if "created_utc" not in kwargs:

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):

View File

@ -73,7 +73,6 @@ class User(Base, Stndrd, Age_times):
"Notification",
lazy="dynamic")
referred_by = Column(Integer)
is_banned = Column(Integer, default=None)
unban_utc = Column(Integer, default=None)
ban_reason = Column(String, default="")