From e9fd55f587aed7e9afbfd27c4ab56e4bc96d2c26 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 24 Aug 2018 14:22:11 +0200 Subject: Adding timestamp to CSS href --- scripts/rankings-tables-compile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/rankings-tables-compile.py b/scripts/rankings-tables-compile.py index f1a0cc8..925404c 100644 --- a/scripts/rankings-tables-compile.py +++ b/scripts/rankings-tables-compile.py @@ -15,6 +15,9 @@ table.select('table.data-table')[0]['data-ranking'] = '_data/%s.json?%d' % ( 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')) +style_href = table.select('link[href="_res/ranking.css"]')[0] +style_href['href'] = '%s?%d' % ('_res/ranking.css', os.path.getmtime('http/_res/ranking.css')) + rawlink = table.select('a#rawlink')[0] rawlink['href'] = '%s/%s.csv' % (rawlink['href'], ranking_date) -- cgit v1.2.3