From 953d2c27a4e9aa6425aa6f0a9d1458901da9bd97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kriv=C3=A1cs=20Schr=C3=B8der?= Date: Thu, 16 Mar 2023 06:56:01 +0100 Subject: [PATCH] fix: don't claim accurate publish date --- database/sqlx-data.json | 20 ++++++++++---------- database/src/models/comic.rs | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/database/sqlx-data.json b/database/sqlx-data.json index 784f93a..80e4123 100644 --- a/database/sqlx-data.json +++ b/database/sqlx-data.json @@ -449,6 +449,16 @@ }, "query": "\n UPDATE `Comic`\n SET `tagline` = ?\n WHERE\n `id` = ?\n " }, + "171f43ee696d68b6e89cbb9aabb87e296e0d3679dc1e64bedec90b05e8cd3ed7": { + "describe": { + "columns": [], + "nullable": [], + "parameters": { + "Right": 7 + } + }, + "query": "\n INSERT INTO `Comic`\n (`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)\n VALUES\n (?, ?, ?, ?, 0)\n ON DUPLICATE KEY UPDATE\n `title` = ?,\n `image_type` = ?,\n `publish_date` = ?\n " + }, "1b5cd972500fdfed5f41fa9d48c232d45fc1043089147fb87513aef1006a3732": { "describe": { "columns": [], @@ -2168,16 +2178,6 @@ }, "query": "\n SELECT `publish_date` FROM `Comic` WHERE `id` = ?\n " }, - "fb720226ca224bbdeb08d470a574ce5dfadb85fda47371cc8d80108f52acb50f": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Right": 7 - } - }, - "query": "\n INSERT INTO `Comic`\n (`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)\n VALUES\n (?, ?, ?, ?, 1)\n ON DUPLICATE KEY UPDATE\n `title` = ?,\n `image_type` = ?,\n `publish_date` = ?\n " - }, "fb72ef2f19c5d5aa356ffe4a00ab1b1a7641d6d1b4a36df6cb3952de6975a9a5": { "describe": { "columns": [ diff --git a/database/src/models/comic.rs b/database/src/models/comic.rs index 96ac721..06ac5ef 100644 --- a/database/src/models/comic.rs +++ b/database/src/models/comic.rs @@ -789,7 +789,7 @@ impl Comic { INSERT INTO `Comic` (`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`) VALUES - (?, ?, ?, ?, 1) + (?, ?, ?, ?, 0) ON DUPLICATE KEY UPDATE `title` = ?, `image_type` = ?,