summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2023-03-19 15:08:47 -0700
committerTrumeet <yuuta@yuuta.moe>2023-03-19 15:08:47 -0700
commitfc54fc6a79e10701f25548d0db5b7df0144322e4 (patch)
tree7f680bf19c524f41180dd5e3487cba542b6f4c96
parentbeeeb62cb75398ea9c97e8cd4b8add3945153c64 (diff)
downloadksyxbot-fc54fc6a79e10701f25548d0db5b7df0144322e4.tar
ksyxbot-fc54fc6a79e10701f25548d0db5b7df0144322e4.tar.gz
ksyxbot-fc54fc6a79e10701f25548d0db5b7df0144322e4.tar.bz2
ksyxbot-fc54fc6a79e10701f25548d0db5b7df0144322e4.zip
Fix incorrect view name
-rw-r--r--db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.c b/db.c
index 08e7aec..4c340ba 100644
--- a/db.c
+++ b/db.c
@@ -72,7 +72,7 @@ void db_init(void) {
}
/* Prepare statements */
- if ((r = sqlite3_prepare_v2(db, "SELECT * FROM stats_global;", -1, &stmt_global_stat, NULL))) {
+ if ((r = sqlite3_prepare_v2(db, "SELECT * FROM stat_global;", -1, &stmt_global_stat, NULL))) {
errmsg = (char *) sqlite3_errstr(r);
goto sql_err;
}