diff options
author | emkael <emkael@tlen.pl> | 2017-09-07 02:13:47 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-09-07 02:13:47 +0200 |
commit | 46443146f51a3b788c28b4ac4b9b8de7b22af39f (patch) | |
tree | 4c2e092a8ba622e2f724d4933b09c24978222f8f /scripts | |
parent | 4060fa99c23bca17895029ae1ffad24d0d024269 (diff) |
Default paging size increased to 100
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/players.py | 8 |
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' % ( |