Quick search: build workload urls in the view
This commit is contained in:
1 parent
5793204b1b
commit
05275645f5
1 file changed
+2
-2
+2
-2
@@ -593,7 +593,7 @@ def api_quick_search(request):
|
||||
if OPENBENCH_CONFIG['require_login_to_view'] and not request.user.is_authenticated:
|
||||
return JsonResponse({ 'tests' : [] }, status=403)
|
||||
|
||||
from OpenBench.templatetags.mytags import prettyName, workload_url
|
||||
from OpenBench.templatetags.mytags import prettyName
|
||||
from OpenBench.templatetags.uitags import test_status
|
||||
|
||||
query = request.GET.get('q', '').strip().lstrip('#')[:64]
|
||||
@@ -617,7 +617,7 @@ def api_quick_search(request):
|
||||
'engine' : test.dev_engine,
|
||||
'tc' : test.dev_time_control,
|
||||
'status' : test_status(test),
|
||||
'url' : workload_url(test),
|
||||
'url' : '/%s/%d/' % ('tune' if test.test_mode == 'SPSA' else 'test', test.id),
|
||||
} for test in found] })
|
||||
|
||||
def create_test(request):
|
||||
|
||||
Reference in new issue
Block a user