Skip to content

Commit

Permalink
shouldn't count processed batch import (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenkims authored Sep 5, 2022
1 parent 192d03f commit 6595d34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/dashboard/views/batch_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6595d34

Please sign in to comment.