fixing ``platform_opt`` to ``platform_option``

This commit is contained in:
Cameron Dawson 2014-03-27 16:58:17 -07:00
Родитель de9f905fb5
Коммит f001fcf80c
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -39,7 +39,7 @@ def test_job_list(webapp, eleven_jobs_processed, jm):
"job_type_symbol",
"platform",
"job_group_description",
"platform_opt",
"platform_option",
"machine_platform_os",
"build_os",
"machine_platform_architecture",

Просмотреть файл

@ -349,7 +349,7 @@ class JobsViewSet(viewsets.ViewSet):
job["artifacts"].append(art)
option_collections = jm.refdata_model.get_all_option_collections()
job["platform_opt"] = get_option(job, option_collections)
job["platform_option"] = get_option(job, option_collections)
return Response(job)
else:
@ -372,7 +372,7 @@ class JobsViewSet(viewsets.ViewSet):
if objs:
option_collections = jm.refdata_model.get_all_option_collections()
for job in objs:
job["platform_opt"] = get_option(job, option_collections)
job["platform_option"] = get_option(job, option_collections)
return Response(objs)
@ -551,7 +551,6 @@ class ResultSetViewSet(viewsets.ViewSet):
for job in by_job_type:
job["id"] = job["job_id"]
del(job["job_id"])
del(job["result_set_id"])
del(job["option_collection_hash"])
job["platform_option"] = platform_option