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)