summaryrefslogtreecommitdiff
path: root/scripts/pyranking
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-08-24 12:53:41 +0200
committeremkael <emkael@tlen.pl>2018-08-24 12:54:15 +0200
commit6f9756cf49e2e2802916ef251732a9377ddd756b (patch)
tree66bf607583b9ed856341454b505b0c50d9487d24 /scripts/pyranking
parent83c732f6c67c05b641cd0d37d9e8718cbf061c65 (diff)
Alowingg players to not be displayed by name in the rankings
Diffstat (limited to 'scripts/pyranking')
-rw-r--r--scripts/pyranking/fetch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pyranking/fetch.py b/scripts/pyranking/fetch.py
index 304f509..67ab5a6 100644
--- a/scripts/pyranking/fetch.py
+++ b/scripts/pyranking/fetch.py
@@ -9,7 +9,8 @@ def fetch_ranking(date, assoc=False):
rankings.region, rankings.club,
REPLACE(rankings.flags, "K", "") age,
IF(rankings.flags LIKE 'K%', "K", "") gender,
- rankings.score
+ rankings.score,
+ rankings.hidden
FROM rankings
JOIN players
ON players.id = rankings.pid