summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/players.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/players.py b/scripts/players.py
index eddb2e9..22a1321 100644
--- a/scripts/players.py
+++ b/scripts/players.py
@@ -61,9 +61,9 @@ for pid, player in players.iteritems():
rank_link = row.find('td').a
rank_link.string = '.'.join(date.split('-')[::-1])
base_rank_link = '../%s' % (dates[date])
- if ranking is not None and ranking['place'] > 50:
+ if ranking is not None and ranking['place'] > 100:
rank_link['href'] = '../%s#page:%d' % (
- dates[date], ceil(ranking['place'] / 50.0)
+ dates[date], ceil(ranking['place'] / 100.0)
)
else:
rank_link['href'] = base_rank_link
@@ -73,9 +73,9 @@ for pid, player in players.iteritems():
score_cell['title'] = str(ranking['score'])
for field in ['region', 'age', 'gender']:
link = row.select('td.'+field+' a')[0]
- if ranking[field+'-place'] > 40:
+ if ranking[field+'-place'] > 100:
link['href'] = base_rank_link + '#%s:%s;page:%d' % (
- field, ranking[field], ceil(ranking[field+'-place'] / 40.0)
+ field, ranking[field], ceil(ranking[field+'-place'] / 100.0)
)
else:
link['href'] = base_rank_link + '#%s:%s' % (