forked from MarseyWorld/MarseyWorld
master
parent
3222d61b11
commit
05b9a66f0a
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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="")
|
||||
|
|
Loading…
Reference in New Issue