summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 7ab5214..e9baf8d 100644
--- a/server.js
+++ b/server.js
@@ -3143,7 +3143,7 @@ const SQL_USER_STATS = SQL(`
titles.title_name,
scenario,
role,
- sum(role=result) as won,
+ sum(score) / 2 as won,
count(*) as total
from
players
@@ -3163,7 +3163,7 @@ const SQL_USER_STATS = SQL(`
titles.title_name,
scenario,
null as role,
- sum(role=result) as won,
+ sum(score) / 2 as won,
count(*) as total
from
players