Support downloading Networks by their name as opposed to sha

Future file uploads cannot contain illegla characters. Legal characters are alpha numerics, dots, underscores, and dashes. Any existing files of this schema are probably unable to be downloaded.
This commit is contained in:
andrew committed 2023-05-24 13:26:45 -04:00
1 parent 718fafb67d
commit 97d33dcddb
2 files changed
+19 -5

No files matched your search

+2 -1
View File
@@ -66,7 +66,8 @@ urlpatterns = [
django.urls.path(r'clientGetBuildInfo/', OpenBench.views.client_get_build_info),
django.urls.path(r'clientWorkerInfo/', OpenBench.views.client_worker_info),
django.urls.path(r'clientGetWorkload/', OpenBench.views.client_get_workload),
django.urls.path(r'clientGetNetwork/<str:sha256>/', OpenBench.views.client_get_network),
django.urls.path(r'clientGetNetwork/<str:identifier>/', OpenBench.views.client_get_network),
django.urls.path(r'clientGetNetwork/<str:identifier>/<str:engine>/', OpenBench.views.client_get_network),
django.urls.path(r'clientWrongBench/', OpenBench.views.client_wrong_bench),
django.urls.path(r'clientSubmitNPS/', OpenBench.views.client_submit_nps),
django.urls.path(r'clientSubmitError/', OpenBench.views.client_submit_error),