diff --git a/src/api.c b/src/api.c index cbf0ae8..812e5b1 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));