diff options
author | Alexander Kabui | 2020-11-24 10:27:29 +0300 |
---|---|---|
committer | Alexander Kabui | 2020-11-24 10:27:29 +0300 |
commit | 3957634c1fd24eb61efe0adc74fe7c6c7841ad86 (patch) | |
tree | 87381a4d9535791e241626293c6ff59deef1347b | |
parent | 5cac7531b517f96af9bf80066dc7faad396742f6 (diff) | |
download | genenetwork2-3957634c1fd24eb61efe0adc74fe7c6c7841ad86.tar.gz |
solve issues to do with decoding in python3
-rw-r--r-- | wqflask/wqflask/docs.py | 4 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 2 |
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(): |