updated contextualise.py for the diverge template
This commit is contained in:
parent
4522998793
commit
b7e142df1b
Binary file not shown.
@ -36,7 +36,7 @@ pathofwords = []
|
||||
pathofnumbers = []
|
||||
|
||||
#reading wordlist.json
|
||||
with open('wordlist.json', 'r') as f:
|
||||
with open('wordlist.json', 'r', encoding='utf8') as f:
|
||||
wordlist_dict = json.load(f)
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ def description():
|
||||
@app.route('/diverge', methods=['GET'])
|
||||
def diverge():
|
||||
searchterm=request.args.get('search')
|
||||
return render_template('diverge.html', searchterm=searchterm)
|
||||
return render_template('diverge.html', wordlist_dict=wordlist_dict, searchterm=searchterm)
|
||||
|
||||
@app.route('/listofwords')
|
||||
def listofwords():
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>{{ searchterm }} : </p>
|
||||
|
Loading…
Reference in New Issue
Block a user