From 8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 25 May 2018 18:28:24 +0100 Subject: Add package soft deletion --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/utils.py') 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) -- cgit v1.2.3