correct views per request status

This commit is contained in:
dandds
2018-09-13 10:38:30 -04:00
parent edbcfb5f04
commit 636f5b3315
7 changed files with 30 additions and 17 deletions

View File

@@ -31,7 +31,7 @@ def readableInteger(value):
def getOptionLabel(value, options):
if hasattr(value, "value"):
value = value.value
value = value.name
try:
return next(tup[1] for tup in options if tup[0] == value)
except StopIteration: