diff options
-rw-r--r-- | scripts/players.py | 8 | ||||
-rw-r--r-- | templates/ranking.html | 3 |
2 files changed, 5 insertions, 6 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' % ( diff --git a/templates/ranking.html b/templates/ranking.html index 19b6297..0455759 100644 --- a/templates/ranking.html +++ b/templates/ranking.html @@ -161,8 +161,7 @@ <div class="input-group"> <select id="pagesize" class="form-control" aria-label="Pozycji na stronÄ™"> - <option value="50" selected="selected">50</option> - <option value="100">100</option> + <option value="100" selected="selected">100</option> <option value="200">200</option> <option value="500">500</option> <option value="1000">1000</option> |