diff options
| -rw-r--r-- | dbhandling.c | 4 |
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: "); |
