From fa7cb304e3f429d1813ef00be60235a6f4b32005 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Sep 2021 10:44:26 +0200 Subject: [PATCH] force push --- files/classes/award.py | 4 ++-- files/classes/comment.py | 2 +- files/classes/mod_logs.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/classes/award.py b/files/classes/award.py index b5c9fa181..3025fa7c6 100644 --- a/files/classes/award.py +++ b/files/classes/award.py @@ -61,8 +61,8 @@ class AwardRelationship(Base): id = Column(Integer, primary_key=True) user_id = Column(Integer, ForeignKey("users.id")) - submission_id = Column(Integer, ForeignKey("submissions.id"), default=None) - comment_id = Column(Integer, ForeignKey("comments.id"), default=None) + submission_id = Column(Integer, ForeignKey("submissions.id")) + comment_id = Column(Integer, ForeignKey("comments.id")) kind = Column(String(20)) user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", viewonly=True) diff --git a/files/classes/comment.py b/files/classes/comment.py index ccacfba99..bd0d82892 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -18,7 +18,7 @@ class CommentAux(Base): key_id = Column(Integer, primary_key=True) id = Column(Integer, ForeignKey("comments.id")) - body = Column(String(10000), default=None) + body = Column(String(10000)) body_html = Column(String(20000)) ban_reason = Column(String(256), default='') diff --git a/files/classes/mod_logs.py b/files/classes/mod_logs.py index d14b6ef8a..aae7b15a2 100644 --- a/files/classes/mod_logs.py +++ b/files/classes/mod_logs.py @@ -13,7 +13,7 @@ class ModAction(Base): target_user_id = Column(Integer, ForeignKey("users.id"), default=0) target_submission_id = Column(Integer, ForeignKey("submissions.id"), default=0) target_comment_id = Column(Integer, ForeignKey("comments.id"), default=0) - _note=Column(String(256), default=None) + _note=Column(String(256)) created_utc = Column(Integer, default=0) user = relationship("User", primaryjoin="User.id==ModAction.user_id", viewonly=True)