Skip to content

Commit 5ebb912

Browse files
committed
bugfix: pagination
1 parent 9e3a546 commit 5ebb912

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

server/.sqlx/query-45c584aa6a0e8cb89913c95e2ef84f85f80bb50081fdd55bed9bf45837a9e13e.json renamed to server/.sqlx/query-7ba44b83986c63c1425c21c0870a6b94600b8da09198d88912f19977c286a938.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/.sqlx/query-9b5ed3d2fc5fe5eda27f684078a951486fb69fd8ebb43366d25b560711984061.json renamed to server/.sqlx/query-b5dc0da5438a003cc5600e9069cdd6aaf9da46c3388571002a433f738a5d7253.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/src/db/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ impl DB {
545545
FROM repos r
546546
JOIN organizations o ON r.organization_id = o.id
547547
WHERE r.paused = true
548+
ORDER BY
549+
o.login, r.name
548550
"#
549551
)
550552
.fetch_all(&self.0)
@@ -581,6 +583,7 @@ impl DB {
581583
let total_count = sqlx::query!(
582584
r#"SELECT COUNT(DISTINCT(r.organization_id, r.id)) as id
583585
FROM repos r
586+
WHERE r.paused = false
584587
"#,
585588
)
586589
.fetch_one(&self.0)

0 commit comments

Comments
 (0)