From 6595d342760466bc55a572b37868790f5a5de3d3 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 5 Sep 2022 15:38:12 +0200 Subject: [PATCH] shouldn't count processed batch import (#1268) --- app/dashboard/views/batch_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/dashboard/views/batch_import.py b/app/dashboard/views/batch_import.py index 5ab18e43..c8a81af1 100644 --- a/app/dashboard/views/batch_import.py +++ b/app/dashboard/views/batch_import.py @@ -25,7 +25,9 @@ def batch_import_route(): ) return redirect(url_for("dashboard.index")) - batch_imports = BatchImport.filter_by(user_id=current_user.id).all() + batch_imports = BatchImport.filter_by( + user_id=current_user.id, processed=False + ).all() if request.method == "POST": if len(batch_imports) > 10: