From 3439f3d42c964747188ace6ba599ee14dec1b016 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 14 May 2020 15:47:41 +0000 Subject: [PATCH] Tweaked a log.assertion() case. - Legacy-Id: 17793 --- ietf/submit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/submit/utils.py b/ietf/submit/utils.py index 41c872bd0..de493d5fe 100644 --- a/ietf/submit/utils.py +++ b/ietf/submit/utils.py @@ -133,7 +133,7 @@ def validate_submission_rev(name, rev): expected = 0 existing_revs = [int(i.rev) for i in Document.objects.filter(name=name) if i.rev and i.rev.isdigit() ] - unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ] # pyflakes:ignore + unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if i.rev and not i.rev.isdigit() ] # pyflakes:ignore log.assertion('unexpected_revs', []) if existing_revs: expected = max(existing_revs) + 1