mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-10-17 16:43:26 +00:00
resolves #54: page number remembered between jobs
This commit is contained in:
@@ -212,7 +212,7 @@ void Laminar::sendStatus(LaminarClient* client) {
|
||||
db->stmt("SELECT COUNT(*) FROM builds WHERE name = ?")
|
||||
.bind(client->scope.job)
|
||||
.fetch<uint>([&](uint nRuns){
|
||||
j.set("pages", (nRuns-1) / runsPerPage + 1);
|
||||
j.set("pages", (nRuns-1) / runsPerPage + 1).set("page", client->scope.page);
|
||||
});
|
||||
j.startArray("running");
|
||||
auto p = activeJobs.byJobName().equal_range(client->scope.job);
|
||||
|
||||
Reference in New Issue
Block a user