From 175126808b6ab7f6f08bc4b930430dbf943aa898 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 4 Aug 2023 15:53:12 +0200 Subject: [PATCH] fixed MACRO blunder --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index 8c2d508..7cdc33a 100644 --- a/src/api.c +++ b/src/api.c @@ -67,7 +67,7 @@ VARDECL sqlite3 * connection = NULL; DECL int api_init(void) { - DBERR(sqlite3_open_v2(db, &connection, SQLITE_OPEN_READONLY, NULL)); + DBERR(sqlite3_open_v2(db, &connection, SQLITE_OPEN_READWRITE, NULL)); // dont you fucking dare to remove this spacing DBERR(stmt_prepare(remind_stmt)); DBERR(stmt_prepare(set_repo_stmt));