diff --git a/__pycache__/contextualise.cpython-37.pyc b/__pycache__/contextualise.cpython-37.pyc index e24374e..1aeba76 100644 Binary files a/__pycache__/contextualise.cpython-37.pyc and b/__pycache__/contextualise.cpython-37.pyc differ diff --git a/contextualise.py b/contextualise.py index 2bc9d6d..fa9c35a 100644 --- a/contextualise.py +++ b/contextualise.py @@ -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(): diff --git a/templates/diverge.html b/templates/diverge.html index 6150ae9..90318f5 100644 --- a/templates/diverge.html +++ b/templates/diverge.html @@ -1,4 +1,4 @@ -{% extends "layout.html" %} + {% block content %}

{{ searchterm }} :