mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
Update netbox/extras/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
d3f3a56635
commit
a8d94c3fac
@ -1200,9 +1200,7 @@ class ScriptResultView(TableMixin, generic.ObjectView):
|
|||||||
LogLevelChoices.LOG_FAILURE: 5,
|
LogLevelChoices.LOG_FAILURE: 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
log_level = 0
|
log_level = LOG_LEVEL_RANK.get(request.GET.get('log_level', LogLevelChoices.LOG_DEFAULT))
|
||||||
if 'log_level' in request.GET:
|
|
||||||
log_level = LOG_LEVEL_RANK.get(request.GET["log_level"], LogLevelChoices.LOG_DEFAULT)
|
|
||||||
|
|
||||||
if job.data:
|
if job.data:
|
||||||
if 'log' in job.data:
|
if 'log' in job.data:
|
||||||
|
Loading…
Reference in New Issue
Block a user