Skip to content
Snippets Groups Projects
Unverified Commit 8bdc7ee5 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

Fix weather value.

* src/cuirass/database.scm (db-get-builds): Fix weather value.
* tests/http.scm (build-query-result): Adapt it.
parent 6bd940fc
No related branches found
No related tags found
No related merge requests found
......@@ -1134,8 +1134,9 @@ ORDER BY ~a;"
(#:status . ,(string->number status))
(#:last-status . ,(and last-status
(string->number last-status)))
(#:weather . ,(and weather
(string->number weather)))
(#:weather . ,(if weather
(string->number weather)
(build-weather unknown)))
(#:priority . ,(string->number priority))
(#:max-silent . ,(string->number max-silent))
(#:timeout . ,(string->number timeout))
......
......@@ -65,7 +65,7 @@
(#:system . "x86_64-linux")
(#:nixname . "fake-1.0")
(#:buildstatus . 0)
(#:weather . #nil)
(#:weather . -1)
(#:busy . 0)
(#:priority . 0)
(#:finished . 1)
......
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