shouldn't count processed batch import (#1268)

This commit is contained in:
Son Nguyen Kim 2022-09-05 15:38:12 +02:00 committed by GitHub
parent 192d03fd68
commit 6595d34276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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: