fd
This commit is contained in:
parent
94896056e1
commit
f7d0dfff2d
3 changed files with 0 additions and 11 deletions
|
@ -71,10 +71,6 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
|
||||||
|
|
||||||
awards = relationship("AwardRelationship", lazy="joined")
|
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):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
||||||
if "created_utc" not in kwargs:
|
if "created_utc" not in kwargs:
|
||||||
|
|
|
@ -76,12 +76,6 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
||||||
uselist=False,
|
uselist=False,
|
||||||
primaryjoin="Submission.is_approved==User.id")
|
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")
|
awards = relationship("AwardRelationship", lazy="joined")
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
|
@ -73,7 +73,6 @@ class User(Base, Stndrd, Age_times):
|
||||||
"Notification",
|
"Notification",
|
||||||
lazy="dynamic")
|
lazy="dynamic")
|
||||||
|
|
||||||
referred_by = Column(Integer)
|
|
||||||
is_banned = Column(Integer, default=None)
|
is_banned = Column(Integer, default=None)
|
||||||
unban_utc = Column(Integer, default=None)
|
unban_utc = Column(Integer, default=None)
|
||||||
ban_reason = Column(String, default="")
|
ban_reason = Column(String, default="")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue