Improve some derivation model functions

Return integer values for ids, rather than strings (as this type is more
appropriate). Also, better parse the derivation arguments and environment
variables.
This commit is contained in:
Christopher Baines 2019-11-09 20:39:47 +00:00
parent 4710d4e398
commit 7b3bc5bcfa
2 changed files with 16 additions and 6 deletions

View file

@ -60,7 +60,7 @@
"WHERE builds.derivation_id = $1 "
"ORDER BY latest_build_status.status_fetched_at DESC "))
(exec-query conn query (list derivation-id)))
(exec-query conn query (list (number->string derivation-id))))
(define (select-build-by-build-server-and-id
conn build-server-id id)