aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-24 10:27:29 +0300
committerAlexander Kabui2020-11-24 10:27:29 +0300
commit3957634c1fd24eb61efe0adc74fe7c6c7841ad86 (patch)
tree87381a4d9535791e241626293c6ff59deef1347b
parent5cac7531b517f96af9bf80066dc7faad396742f6 (diff)
downloadgenenetwork2-3957634c1fd24eb61efe0adc74fe7c6c7841ad86.tar.gz
solve issues to do with decoding in python3
-rw-r--r--wqflask/wqflask/docs.py4
-rw-r--r--wqflask/wqflask/views.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py
index d653c269..23fc3cad 100644
--- a/wqflask/wqflask/docs.py
+++ b/wqflask/wqflask/docs.py
@@ -19,8 +19,10 @@ class Docs(object):
self.title = self.entry.capitalize()
self.content = ""
else:
+
self.title = result[0]
- self.content = result[1]
+ self.content = result[1].decode("utf-8")
+
self.editable = "false"
# ZS: Removing option to edit to see if text still gets vandalized
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index b7c4d142..bf2e9026 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -304,8 +304,8 @@ def news():
@app.route("/references")
def references():
doc = Docs("references", request.args)
+ # return render_template("reference.html")
return render_template("docs.html", **doc.__dict__)
- #return render_template("reference.html")
@app.route("/intro")
def intro():