Skip to content
Snippets Groups Projects
Commit 88c79b98 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[backend][views] Fix key search in dictionary

parent e346199b
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -77,7 +77,7 @@ def scheduler(request):
cache_gb = int(cache['capacity-in-megabytes'] / 1024.0)
refreshing_period = getattr(settings, 'SCHEDULING_INTERVAL', 5)
if request.GET.has_key('period'):
if 'period' in request.GET:
refreshing_period = int(request.GET['period'])
return render(request,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment