Skip to content

Commit ffc541a

Browse files
committed
Simplified some recent code a little bit.
- Legacy-Id: 18323
1 parent 1dedffb commit ffc541a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/meeting/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ def materials_document(request, document, num=None, ext=None):
203203
# This view does not allow the use of DocAliases. Right now we are probably only creating one (identity) alias, but that may not hold in the future.
204204
doc = Document.objects.filter(name=name).first()
205205
# Handle edge case where the above name, rev splitter misidentifies the end of a document name as a revision mumber
206-
if not doc:
207-
name = name + (('-' + rev) if rev else '')
206+
if rev and not doc:
207+
name = name + '-' + rev
208208
rev = None
209209
doc = get_object_or_404(Document, name=name)
210210

0 commit comments

Comments
 (0)