aboutsummaryrefslogtreecommitdiff
path: root/app/models.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-23 23:49:49 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-23 23:54:20 +0000
commit50889ccca57cea9166ab7c64a83d540d6c0a20ce (patch)
tree57d757bc7250517b8f4b5e38251b9dfc8422bf8c /app/models.py
parentb8ca5d24c50f108ea574c89405e2ce2e70ea18af (diff)
downloadcheatdb-50889ccca57cea9166ab7c64a83d540d6c0a20ce.tar.xz
Add topic searching and topic discarding
Diffstat (limited to 'app/models.py')
-rw-r--r--app/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models.py b/app/models.py
index 488cc35..9c17da6 100644
--- a/app/models.py
+++ b/app/models.py
@@ -804,6 +804,7 @@ class ForumTopic(db.Model):
author = db.relationship("User")
wip = db.Column(db.Boolean, server_default="0")
+ discarded = db.Column(db.Boolean, server_default="0")
type = db.Column(db.Enum(PackageType), nullable=False)
title = db.Column(db.String(200), nullable=False)
@@ -836,6 +837,7 @@ class ForumTopic(db.Model):
"posts": self.posts,
"views": self.views,
"is_wip": self.wip,
+ "discarded": self.discarded,
"created_at": self.created_at.isoformat(),
}