diff options
author | June McEnroe <june@causal.agency> | 2020-07-10 11:54:33 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-10 11:54:33 -0400 |
commit | dffae725026a5f19303c36d5250779cf5e8523ab (patch) | |
tree | 6b4bc6a0172cd0e8e9a6d26fa1f01176d7153a17 /networks.c | |
parent | Move search help to footer (diff) | |
download | scooper-dffae725026a5f19303c36d5250779cf5e8523ab.tar.gz scooper-dffae725026a5f19303c36d5250779cf5e8523ab.zip |
Add -l and -r options
Diffstat (limited to '')
-rw-r--r-- | networks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networks.c b/networks.c index f397bab..7f974c4 100644 --- a/networks.c +++ b/networks.c @@ -26,7 +26,7 @@ const char *NetworksQuery = SQL( SELECT time, context FROM events ORDER BY event DESC - LIMIT 500 // TODO: Configurable. + LIMIT :recent ), activeNetworks AS ( SELECT DISTINCT network FROM contexts @@ -55,6 +55,8 @@ enum kcgi_err pageNetworks(struct kreq *req) { || htmlNav(&html, NULL, NULL); if (error) return error; + dbBindInt(stmt.networks, ":recent", pageRecent); + enum State { None, Active, |