summaryrefslogtreecommitdiff
path: root/dbhandling.c
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-05-03 18:57:16 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-05-03 18:57:16 +0200
commitb7e05ac5c2cb8f169b1cf66926faddcf7f15b7cc (patch)
tree38a9fffda11e67d6cc551a10c3e01f190ed3734e /dbhandling.c
parent3731ed237f1c983000f07ad585e82f603db69ccd (diff)
removed debug printf
Diffstat (limited to 'dbhandling.c')
-rw-r--r--dbhandling.c4
1 files changed, 1 insertions, 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: ");