summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-07 12:12:16 +0200
committeremkael <emkael@tlen.pl>2017-09-07 12:12:16 +0200
commit157d38e305f2144e546ec1e964292477cae9516d (patch)
tree8ccea8e785918952235ed4d4ced8df12af34fc8f /scripts
parentb011fb2daa0f6b8591cbc495ec069b50ff337204 (diff)
Renaming HTTP resource directories to prefixed names
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ranking.py6
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)