summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-08-24 14:22:11 +0200
committeremkael <emkael@tlen.pl>2018-08-24 14:22:11 +0200
commite9fd55f587aed7e9afbfd27c4ab56e4bc96d2c26 (patch)
tree1186b222d0913ac614d8e73dcf747c421da0d227
parent45ca0e904f6024b8fa8fe231be7ff8aa83d1cf30 (diff)
Adding timestamp to CSS href
-rw-r--r--scripts/rankings-tables-compile.py3
1 files changed, 3 insertions, 0 deletions
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)