From 33311b49543d0a67848f2709932ea1ba51e8256d Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 24 Mar 2024 04:23:55 +0100 Subject: [PATCH] Changed weight to mass in manticore actors table to prevent score weight conflict. --- migrations/20240125011700_manticore.js | 2 +- src/tools/manticore-actors.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations/20240125011700_manticore.js b/migrations/20240125011700_manticore.js index a58843168..948dff972 100644 --- a/migrations/20240125011700_manticore.js +++ b/migrations/20240125011700_manticore.js @@ -62,7 +62,7 @@ const actorsFields = ` date_of_birth timestamp, country string, has_avatar bool, - weight int, + mass int, height int, cup string, natural_boobs int, diff --git a/src/tools/manticore-actors.js b/src/tools/manticore-actors.js index 019be0b14..ff229c231 100644 --- a/src/tools/manticore-actors.js +++ b/src/tools/manticore-actors.js @@ -42,7 +42,7 @@ async function init() { date_of_birth timestamp, country string, has_avatar bool, - weight int, + mass int, height int, cup string, natural_boobs int, @@ -66,7 +66,7 @@ async function init() { has_avatar: !!actor.avatar_media_id, country: actor.birth_country_alpha2 || undefined, height: actor.height || undefined, - weight: actor.weight || undefined, + mass: actor.weight || undefined, // weight is a reserved keyword in manticore cup: actor.cup || undefined, natural_boobs: actor.natural_boobs === null ? 0 : Number(actor.natural_boobs) + 1, // manticore bool does not seem to support null, and we need three states for natural_boobs: yes, no and unknown penis_length: actor.penis_length || undefined,