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"