hydra-evaluator: reformat readJobsets query

This commit is contained in:
Graham Christensen 2021-01-25 15:11:57 -05:00
parent ac3e8a4a59
commit 705a45df2b
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -68,7 +68,9 @@ struct Evaluator
pqxx::work txn(*conn); pqxx::work txn(*conn);
auto res = txn.exec auto res = txn.exec
("select project, j.name, lastCheckedTime, triggerTime, checkInterval, j.enabled as jobset_enabled from Jobsets j join Projects p on j.project = p.name " ("select project, j.name, lastCheckedTime, triggerTime, checkInterval, j.enabled as jobset_enabled "
"from Jobsets j "
"join Projects p on j.project = p.name "
"where j.enabled != 0 and p.enabled != 0"); "where j.enabled != 0 and p.enabled != 0");