Change LogLevelChoices in ScriptResultView get_table method

This commit is contained in:
Renato Almeida de Oliveira Zaroubin 2025-01-27 18:37:34 +00:00
parent ebef1b983a
commit b53d1f5f0e

View File

@ -1315,9 +1315,9 @@ class ScriptResultView(TableMixin, generic.ObjectView):
index = 0 index = 0
try: try:
log_threshold = LOG_LEVEL_RANK[request.GET.get('log_threshold', LogLevelChoices.LOG_DEBUG)] log_threshold = LOG_LEVEL_RANK[request.GET.get('log_threshold', LogLevelChoices.LOG_DEFAULT)]
except KeyError: except KeyError:
log_threshold = LOG_LEVEL_RANK[LogLevelChoices.LOG_DEBUG] log_threshold = LOG_LEVEL_RANK[LogLevelChoices.LOG_DEFAULT]
if job.data: if job.data:
if 'log' in job.data: if 'log' in job.data: