From b7e05ac5c2cb8f169b1cf66926faddcf7f15b7cc Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Sat, 3 May 2025 18:57:16 +0200 Subject: removed debug printf --- dbhandling.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dbhandling.c b/dbhandling.c index d990102..0a588ca 100644 --- a/dbhandling.c +++ b/dbhandling.c @@ -60,7 +60,6 @@ void select_from_table(sqlite3 *db, args_e target, entry_t *entry) sqlite3_stmt *stmt; snprintf(query_param, strlen(entry->name) + 2, "%s%%", entry->name); - printf("Query parameter: %s\n" , query_param); rc = sqlite3_prepare_v2(db, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { @@ -106,12 +105,11 @@ void update_entry(sqlite3 *db, args_e target, entry_t *entry) printf("Name: "); fgets(entry->name, MAX_NAME_LEN, stdin); - - // remove newline char, otherwise it messes with the query entry->name[strcspn(entry->name, "\n")] = 0; // status is currently never NULL, so the if-else makes no sense // would be addressed by the TODO: switching to flags + // i'll just keep it as is for now... switch (target) { case ANIME: printf("Episode: "); -- cgit v1.2.3