aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-25 18:28:24 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-25 18:28:24 +0100
commit8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af (patch)
tree5ef4e040ed428a48319c325d93927508624c99c3 /app/utils.py
parentf93394df753b7e2181f2a3eb3c1f3d45835ccc63 (diff)
downloadcheatdb-8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af.tar.xz
Add package soft deletion
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils.py b/app/utils.py
index e42c3cc..9be70d6 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -116,7 +116,7 @@ def getPackageByInfo(author, name):
if user is None:
abort(404)
- package = Package.query.filter_by(name=name, author_id=user.id).first()
+ package = Package.query.filter_by(name=name, author_id=user.id, soft_deleted=False).first()
if package is None:
abort(404)