From 1baac20c73b76c232a69385d55ef3ab0b60d67c4 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 13 Aug 2013 16:24:01 -0400 Subject: [PATCH] absolute links --- generate-download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-download.py b/generate-download.py index 3b1a589..9e3bd47 100755 --- a/generate-download.py +++ b/generate-download.py @@ -10,7 +10,7 @@ releases = json.load(file('releases.json')) def file_links(release): v = release['version'] - return ['%(f)s' % { + return ['%(f)s' % { 'f': f, 'v': v} for f in release['files']] @@ -27,7 +27,7 @@ current_html = '

' + ('

'.join(file_links(releases[0]))) + '

' previous_lis = [] for release in releases[1:]: - previous_lis.append('
  • %(v)s: %(files)s (%(v)s docs)' % { + previous_lis.append('
  • %(v)s: %(files)s (%(v)s docs)' % { 'v': release['version'], 'files': ', '.join(file_links(release)) }) -- 2.7.4