Fix wrong set_version extraction

This commit is contained in:
Gregoo 2025-01-21 11:27:50 +01:00
parent 14bc9cef26
commit 132892ab0b

View File

@ -13,7 +13,7 @@ SELECT
"sets"."u_id", "sets"."u_id",
{% block number %} {% 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_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 %} {% endblock %}
IFNULL("missing_join"."total", 0) AS "total_missing", IFNULL("missing_join"."total", 0) AS "total_missing",
IFNULL("minifigures_join"."total", 0) AS "total_minifigures" IFNULL("minifigures_join"."total", 0) AS "total_minifigures"