sensible name
This commit is contained in:
parent
c148e2444c
commit
0b9635c309
4
index.py
4
index.py
@ -7,8 +7,8 @@ import urllib.request, json
|
|||||||
|
|
||||||
@route('/')
|
@route('/')
|
||||||
def index():
|
def index():
|
||||||
contents = json.loads(urllib.request.urlopen(url_path).read().decode())
|
domainList = json.loads(urllib.request.urlopen(url_path).read().decode())
|
||||||
return template('index', name=contents)
|
return template('index', domainList=domainList)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="alert alert-primary" role="alert">
|
<div class="alert alert-primary" role="alert">
|
||||||
RAW: {{name}}
|
RAW: {{domainList}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
%for i in name:
|
%for i in domainList:
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
Loading…
Reference in New Issue
Block a user