diff options
author | emkael <emkael@tlen.pl> | 2018-08-24 12:53:41 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-08-24 12:54:15 +0200 |
commit | 6f9756cf49e2e2802916ef251732a9377ddd756b (patch) | |
tree | 66bf607583b9ed856341454b505b0c50d9487d24 /scripts/rankings-tables-compile.py | |
parent | 83c732f6c67c05b641cd0d37d9e8718cbf061c65 (diff) |
Alowingg players to not be displayed by name in the rankings
Diffstat (limited to 'scripts/rankings-tables-compile.py')
-rw-r--r-- | scripts/rankings-tables-compile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rankings-tables-compile.py b/scripts/rankings-tables-compile.py index 52b036f..f1a0cc8 100644 --- a/scripts/rankings-tables-compile.py +++ b/scripts/rankings-tables-compile.py @@ -1,4 +1,4 @@ -import os, sys +import os, sys, time from bs4 import BeautifulSoup as bs4 ranking_date = sys.argv[4] @@ -9,8 +9,8 @@ subtitle = 'notowanie %s (%s), stan na %s' % ( table = bs4(file('templates/ranking.html'), 'lxml') table.select('.page-header h2 small')[0].string = subtitle -table.select('table.data-table')[0]['data-ranking'] = '_data/%s.json' % ( - ranking_date) +table.select('table.data-table')[0]['data-ranking'] = '_data/%s.json?%d' % ( + ranking_date, int(time.time())) script_src = table.select('script[src="_res/ranking.js"]')[0] script_src['src'] = '%s?%d' % ('_res/ranking.js', os.path.getmtime('http/_res/ranking.js')) |