From 5ab1149e212885f442e47fc4054d11bf64e3fd9a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 16 Oct 2019 11:27:34 -0400 Subject: [PATCH] Fix ncommits <= 0 --- gitsrht/blueprints/email.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitsrht/blueprints/email.py b/gitsrht/blueprints/email.py index f490219..d4fa57e 100644 --- a/gitsrht/blueprints/email.py +++ b/gitsrht/blueprints/email.py @@ -34,6 +34,8 @@ def send_email_start(owner, repo): ncommits = int(request.args.get("commits", default=8)) if ncommits > 32: ncommits = 32 + if ncommits < 8: + ncommits = 8 selected_branch = request.args.get("branch", default=None) branches = [( -- 2.38.4