diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-25 18:28:24 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-25 18:28:24 +0100 |
commit | 8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af (patch) | |
tree | 5ef4e040ed428a48319c325d93927508624c99c3 /app/utils.py | |
parent | f93394df753b7e2181f2a3eb3c1f3d45835ccc63 (diff) | |
download | cheatdb-8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af.tar.xz |
Add package soft deletion
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 2 |
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) |