diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-10 19:05:35 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-10 19:06:27 +0100 |
commit | 3eeaf3be227b449076b2af848a77f4f4406cdfa7 (patch) | |
tree | dc30d3cd15409396df48ff332e1f7eec73215ec2 | |
parent | 1989eabf86729bcd16e226d96d5e4acacddbaae9 (diff) | |
download | cheatdb-3eeaf3be227b449076b2af848a77f4f4406cdfa7.tar.xz |
Hide reviews from package thread list
-rw-r--r-- | app/blueprints/packages/packages.py | 2 |
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: |