diff --git a/index.py b/index.py index dd9af62..2b6a9f3 100644 --- a/index.py +++ b/index.py @@ -7,8 +7,8 @@ import urllib.request, json @route('/') def index(): - contents = json.loads(urllib.request.urlopen(url_path).read().decode()) - return template('index', name=contents) + domainList = json.loads(urllib.request.urlopen(url_path).read().decode()) + return template('index', domainList=domainList) if __name__ == '__main__': diff --git a/views/index.tpl b/views/index.tpl index 3034408..45d7301 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -10,12 +10,12 @@
- %for i in name: + %for i in domainList: