Tourney Player Viewer fix for Bugid 0000050
SQL case statements only divided by 100 if the currency was USD. This is a temporary fix - what we probably want is WHEN tt.currency != PLAY or FPP
This commit is contained in:
parent
9b629a467a
commit
1e749d3cf3
|
@ -2479,7 +2479,11 @@ class Sql:
|
||||||
select s.name AS siteName
|
select s.name AS siteName
|
||||||
,t.tourneyTypeId AS tourneyTypeId
|
,t.tourneyTypeId AS tourneyTypeId
|
||||||
,tt.currency AS currency
|
,tt.currency AS currency
|
||||||
,(CASE WHEN tt.currency = 'USD' THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn
|
,(CASE
|
||||||
|
WHEN tt.currency = 'USD' THEN tt.buyIn/100.0
|
||||||
|
WHEN tt.currency = 'EUR' THEN tt.buyIn/100.0
|
||||||
|
ELSE tt.buyIn
|
||||||
|
END) AS buyIn
|
||||||
,tt.fee/100.0 AS fee
|
,tt.fee/100.0 AS fee
|
||||||
,tt.category AS category
|
,tt.category AS category
|
||||||
,tt.limitType AS limitType
|
,tt.limitType AS limitType
|
||||||
|
@ -2512,7 +2516,11 @@ class Sql:
|
||||||
select s.name AS siteName
|
select s.name AS siteName
|
||||||
,t.tourneyTypeId AS tourneyTypeId
|
,t.tourneyTypeId AS tourneyTypeId
|
||||||
,tt.currency AS currency
|
,tt.currency AS currency
|
||||||
,(CASE WHEN tt.currency = 'USD' THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn
|
,(CASE
|
||||||
|
WHEN tt.currency = 'USD' THEN tt.buyIn/100.0
|
||||||
|
WHEN tt.currency = 'EUR' THEN tt.buyIn/100.0
|
||||||
|
ELSE tt.buyIn
|
||||||
|
END) AS buyIn
|
||||||
,tt.fee/100.0 AS fee
|
,tt.fee/100.0 AS fee
|
||||||
,tt.category AS category
|
,tt.category AS category
|
||||||
,tt.limitType AS limitType
|
,tt.limitType AS limitType
|
||||||
|
@ -2546,7 +2554,11 @@ class Sql:
|
||||||
select s.name AS siteName
|
select s.name AS siteName
|
||||||
,t.tourneyTypeId AS tourneyTypeId
|
,t.tourneyTypeId AS tourneyTypeId
|
||||||
,tt.currency AS currency
|
,tt.currency AS currency
|
||||||
,(CASE WHEN tt.currency = 'USD' THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn
|
,(CASE
|
||||||
|
WHEN tt.currency = 'USD' THEN tt.buyIn/100.0
|
||||||
|
WHEN tt.currency = 'EUR' THEN tt.buyIn/100.0
|
||||||
|
ELSE tt.buyIn
|
||||||
|
END) AS buyIn
|
||||||
,tt.fee/100.0 AS fee
|
,tt.fee/100.0 AS fee
|
||||||
,tt.category AS category
|
,tt.category AS category
|
||||||
,tt.limitType AS limitType
|
,tt.limitType AS limitType
|
||||||
|
|
Loading…
Reference in New Issue
Block a user