diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ranking.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |