From 48c9c09bdcbe07d56fecf35ab32179a7b840f587 Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Sat, 19 Oct 2024 04:38:17 +0200 Subject: [PATCH 1/3] fix(publishertier): store empty instead of stringified false --- components/infobox/commons/infobox_league.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/infobox/commons/infobox_league.lua b/components/infobox/commons/infobox_league.lua index 33673f71f93..44d45e38ca7 100644 --- a/components/infobox/commons/infobox_league.lua +++ b/components/infobox/commons/infobox_league.lua @@ -451,7 +451,7 @@ function League:_definePageVariables(args) Variables.varDefine('tournament_liquipediatier', self.data.liquipediatier) Variables.varDefine('tournament_liquipediatiertype', self.data.liquipediatiertype) - Variables.varDefine('tournament_publishertier', tostring(self.data.publishertier)) + Variables.varDefine('tournament_publishertier', tostring(self.data.publishertier or '')) Variables.varDefine('tournament_type', args.type) Variables.varDefine('tournament_mode', self.data.mode) @@ -522,7 +522,7 @@ function League:_setLpdbData(args, links) prizepool = self.data.prizepoolUsd, liquipediatier = self.data.liquipediatier, liquipediatiertype = self.data.liquipediatiertype, - publishertier = tostring(self.data.publishertier), + publishertier = tostring(self.data.publishertier or ''), participantsnumber = tonumber(args.participants_number) or tonumber(args.team_number) or tonumber(args.player_number) From ae4a0387b650c5d533ba7fd13dd574eecc3b2fd4 Mon Sep 17 00:00:00 2001 From: Martin B Date: Sat, 19 Oct 2024 14:41:23 +0100 Subject: [PATCH 2/3] Update prize_pool_spec.lua --- spec/prize_pool_spec.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/prize_pool_spec.lua b/spec/prize_pool_spec.lua index f1cf9bd0c2a..9b5b4ac7ef6 100644 --- a/spec/prize_pool_spec.lua +++ b/spec/prize_pool_spec.lua @@ -121,7 +121,6 @@ describe('prize pool', function() players = '{"p1":"Rathoz","p1dn":"Rathoz","p1flag":"Sweden"}', -- Legacy prizemoney = 970.97276906869001323, prizepoolindex = 1, - publishertier = 'false', series = 'Test Series', shortname = 'Test Tourney', startdate = '2022-10-13', From f047f851f8bc850eed2e98f749606d952198147b Mon Sep 17 00:00:00 2001 From: Martin B Date: Sat, 19 Oct 2024 14:41:47 +0100 Subject: [PATCH 3/3] Update team_card_storage_spec.lua --- spec/team_card_storage_spec.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/team_card_storage_spec.lua b/spec/team_card_storage_spec.lua index 296cb0f9b50..23630918cd6 100644 --- a/spec/team_card_storage_spec.lua +++ b/spec/team_card_storage_spec.lua @@ -25,7 +25,6 @@ describe('Team Card Storage', function() imagedark = args.imagedark1, mode = 'team', participant = 'Team Liquid', - publishertier = 'false', icon = tournamentData.icon, icondark = tournamentData.icondark, game = string.lower(tournamentData.game),