Skip to content
Snippets Groups Projects
Unverified Commit 0f877a1c authored by Danny Milosavljevic's avatar Danny Milosavljevic
Browse files

http: Convert build-id URL part to number.

* src/cuirass/http.scm (url-handler): Convert build-id URL part to number.
parent 8277233f
No related branches found
No related tags found
No related merge requests found
......@@ -140,12 +140,12 @@
(((or "jobsets" "specifications") . rest)
(respond-json (object->json-string (db-get-specifications db))))
(("build" build-id)
(let ((hydra-build (handle-build-request db build-id)))
(let ((hydra-build (handle-build-request db (string->number build-id))))
(if hydra-build
(respond-json (object->json-string hydra-build))
(respond-build-not-found build-id))))
(("build" build-id "log" "raw")
(let ((build (db-get-build db build-id)))
(let ((build (db-get-build db (string->number build-id))))
(if build
(match (assq-ref build #:outputs)
(((_ (#:path . (? string? output))) _ ...)
......
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