From 6f9756cf49e2e2802916ef251732a9377ddd756b Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 24 Aug 2018 12:53:41 +0200 Subject: Alowingg players to not be displayed by name in the rankings --- scripts/rankings-tables-compile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/rankings-tables-compile.py') 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')) -- cgit v1.2.3