We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53d78a commit 3439f3dCopy full SHA for 3439f3d
1 file changed
ietf/submit/utils.py
@@ -133,7 +133,7 @@ def validate_submission_rev(name, rev):
133
134
expected = 0
135
existing_revs = [int(i.rev) for i in Document.objects.filter(name=name) if i.rev and i.rev.isdigit() ]
136
- 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
137
log.assertion('unexpected_revs', [])
138
if existing_revs:
139
expected = max(existing_revs) + 1
0 commit comments