summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-09 20:14:27 -0400
committerJune McEnroe <june@causal.agency>2020-07-09 20:14:27 -0400
commitfb214d0c8096a345f5da30900d9ced0aa777cdc3 (patch)
tree8458f7beca535e49ed531880b32fefc194d7de8b /server.c
parentAdd events page stub (diff)
downloadscooper-fb214d0c8096a345f5da30900d9ced0aa777cdc3.tar.gz
scooper-fb214d0c8096a345f5da30900d9ced0aa777cdc3.zip
Implement very basic events listing
Diffstat (limited to '')
-rw-r--r--server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.c b/server.c
index de18e7d..3dcdea3 100644
--- a/server.c
+++ b/server.c
@@ -46,6 +46,7 @@ const struct kvalid Keys[KeysLen] = {
 };
 
 bool pagePublic;
+int pageLimit = 100;
 
 static enum kcgi_err request(struct kreq *req) {
 	if (req->method != KMETHOD_HEAD && req->method != KMETHOD_GET) {
@@ -94,6 +95,8 @@ int main(int argc, char *argv[]) {
 
 	prepare(&stmt.networks, NetworksQuery);
 	prepare(&stmt.contexts, ContextsQuery);
+	prepare(&stmt.eventsAfter, EventsAfterQuery);
+	prepare(&stmt.eventsBefore, EventsBeforeQuery);
 	
 	if (fastCGI) {
 		struct kfcgi *fcgi;