updated code for readability

This commit is contained in:
David Kennedy 2024-04-17 12:40:27 -04:00
parent 5673d5951e
commit c1c428b6c3
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -1455,8 +1455,9 @@ class DomainRequestAdmin(ListHeaderAdmin):
# find the index to determine the referring url after the path # find the index to determine the referring url after the path
index = http_referer.find(request.path) index = http_referer.find(request.path)
# Check if there is a character following the path in http_referer # Check if there is a character following the path in http_referer
if index + len(request.path) < len(http_referer): next_char_index = index + len(request.path)
next_char = http_referer[index + len(request.path)] if index + next_char_index < len(http_referer):
next_char = http_referer[next_char_index]
# Check if the next character is a digit, if so, this indicates # Check if the next character is a digit, if so, this indicates
# a change view for domain request # a change view for domain request