From 0b9635c309777a1c46d607c9d3e3b0c2540593b4 Mon Sep 17 00:00:00 2001 From: lulzette Date: Thu, 25 Mar 2021 22:44:03 +0000 Subject: [PATCH] sensible name --- index.py | 4 ++-- views/index.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: