From 157d38e305f2144e546ec1e964292477cae9516d Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 7 Sep 2017 12:12:16 +0200 Subject: Renaming HTTP resource directories to prefixed names --- scripts/ranking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/ranking.py b/scripts/ranking.py index 4a16867..e3276da 100644 --- a/scripts/ranking.py +++ b/scripts/ranking.py @@ -9,11 +9,11 @@ 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' % ( +table.select('table.data-table')[0]['data-ranking'] = '_data/%s.json' % ( ranking_date) -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')) +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')) rawlink = table.select('a#rawlink')[0] rawlink['href'] = '%s/%s.csv' % (rawlink['href'], ranking_date) -- cgit v1.2.3