aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 19:05:35 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 19:06:27 +0100
commit3eeaf3be227b449076b2af848a77f4f4406cdfa7 (patch)
treedc30d3cd15409396df48ff332e1f7eec73215ec2
parent1989eabf86729bcd16e226d96d5e4acacddbaae9 (diff)
downloadcheatdb-3eeaf3be227b449076b2af848a77f4f4406cdfa7.tar.xz
Hide reviews from package thread list
-rw-r--r--app/blueprints/packages/packages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py
index d6e8ae8..2dab9d1 100644
--- a/app/blueprints/packages/packages.py
+++ b/app/blueprints/packages/packages.py
@@ -152,7 +152,7 @@ def view(package):
topic_error = "<br />".join(errors)
- threads = Thread.query.filter_by(package_id=package.id)
+ threads = Thread.query.filter_by(package_id=package.id, review_id=None)
if not current_user.is_authenticated:
threads = threads.filter_by(private=False)
elif not current_user.rank.atLeast(UserRank.EDITOR) and not current_user == package.author: