From 132892ab0bb9620a1547778f5ba003bb1cfd4441 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Tue, 21 Jan 2025 11:27:50 +0100 Subject: [PATCH] Fix wrong set_version extraction --- bricktracker/sql/set/base/select.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricktracker/sql/set/base/select.sql b/bricktracker/sql/set/base/select.sql index 4450b61..92c3c29 100644 --- a/bricktracker/sql/set/base/select.sql +++ b/bricktracker/sql/set/base/select.sql @@ -13,7 +13,7 @@ SELECT "sets"."u_id", {% block number %} CAST(SUBSTR("sets"."set_num", 1, INSTR("sets"."set_num", '-') - 1) AS INTEGER) AS "set_number", - CAST(SUBSTR("sets"."set_num", 1, INSTR("sets"."set_num", '-') + 1) AS INTEGER) AS "set_version", + CAST(SUBSTR("sets"."set_num", INSTR("sets"."set_num", '-') + 1) AS INTEGER) AS "set_version", {% endblock %} IFNULL("missing_join"."total", 0) AS "total_missing", IFNULL("minifigures_join"."total", 0) AS "total_minifigures"