Guard against some changes in how guile-json represents null values
This commit is contained in:
parent
480d718fa8
commit
308e553b11
4 changed files with 5 additions and 7 deletions
|
|
@ -94,7 +94,7 @@ ORDER BY channel_instances.system DESC")
|
|||
(list system
|
||||
derivation_file_name
|
||||
(filter (lambda (build)
|
||||
(assoc-ref build "status"))
|
||||
(string? (assoc-ref build "status")))
|
||||
(vector->list
|
||||
(json-string->scm builds-json))))))
|
||||
(exec-query conn query (list commit-hash))))
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ ORDER BY derivations.system DESC,
|
|||
target
|
||||
file-name
|
||||
(filter (lambda (build)
|
||||
(assoc-ref build "status"))
|
||||
(string? (assoc-ref build "status")))
|
||||
(vector->list
|
||||
(json-string->scm builds-json)))))
|
||||
((file_name system target)
|
||||
|
|
|
|||
|
|
@ -346,8 +346,7 @@ ORDER BY first_datetime DESC, package_version DESC")
|
|||
(if (string-null? builds-json)
|
||||
'()
|
||||
(filter (lambda (build)
|
||||
(not (eq? (assoc-ref build "build_server_id")
|
||||
#nil)))
|
||||
(number? (assoc-ref build "build_server_id")))
|
||||
(vector->list
|
||||
(json-string->scm builds-json)))))))
|
||||
(exec-query
|
||||
|
|
@ -462,8 +461,7 @@ ORDER BY first_datetime DESC, package_version DESC")
|
|||
(if (string-null? builds-json)
|
||||
'()
|
||||
(filter (lambda (build)
|
||||
(not (eq? (assoc-ref build "build_server_id")
|
||||
#nil)))
|
||||
(number? (assoc-ref build "build_server_id")))
|
||||
(vector->list
|
||||
(json-string->scm builds-json)))))))
|
||||
(exec-query
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ ORDER BY name ASC")
|
|||
(string->number column_number)
|
||||
derivation_file_name
|
||||
(filter (lambda (build)
|
||||
(assoc-ref build "status"))
|
||||
(string? (assoc-ref build "status")))
|
||||
(vector->list
|
||||
(json-string->scm builds-json))))))
|
||||
(exec-query conn query (list system commit-hash))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue