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/views/__init__.py | |
| parent | f93394df753b7e2181f2a3eb3c1f3d45835ccc63 (diff) | |
| download | cheatdb-8cf5c7204f0ebb787eafb9ffa04c9e61a8d6d3af.tar.xz | |
Add package soft deletion
Diffstat (limited to 'app/views/__init__.py')
| -rw-r--r-- | app/views/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py index a296e5d..abaacd7 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -38,7 +38,7 @@ def send_upload(path): @app.route("/") @menu.register_menu(app, ".", "Home") def home_page(): - query = Package.query.filter_by(approved=True) + query = Package.query.filter_by(approved=True, soft_deleted=False) count = query.count() packages = query.order_by(db.desc(Package.created_at)).limit(15).all() return render_template("index.html", packages=packages, count=count) |
