Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 5e905fe7 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Fix json download

parent d2b18aad
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!65Resolve "Sync from kurisu"
...@@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS kara ...@@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS kara
, string TEXT GENERATED ALWAYS AS , string TEXT GENERATED ALWAYS AS
( song_type || ' - ' || language || ' / ' || source_name || ' - ' || category || ( song_type || ' - ' || language || ' / ' || source_name || ' - ' || category ||
song_number || ' - ' || song_name || ' [ ' || author_name || ' ]' || song_number || ' - ' || song_name || ' [ ' || author_name || ' ]' ||
CASE WHEN available = 0 THEN '(U)' ELSE '' END CASE WHEN available = 0 THEN ' (U)' ELSE '' END
) STORED ) STORED
); );
......
...@@ -356,6 +356,7 @@ __handle_got_json(volatile sqlite3 *db, struct lkt_repo *repo, struct json_objec ...@@ -356,6 +356,7 @@ __handle_got_json(volatile sqlite3 *db, struct lkt_repo *repo, struct json_objec
/* Get the id of the kara. */ /* Get the id of the kara. */
if (safe_json_get_int32(kara_json, "id", &integer)) if (safe_json_get_int32(kara_json, "id", &integer))
goto err; goto err;
kara->id = integer;
/* Craft a fake filepath here, it will be used later. */ /* Craft a fake filepath here, it will be used later. */
size_t kara_dir_len = strlen(repo->kara_dir); size_t kara_dir_len = strlen(repo->kara_dir);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter