Update controllers.py
fix a bug with reading template file
This commit is contained in:
parent
2e394dc2cb
commit
db663fe134
@ -101,7 +101,7 @@ class AprsSymbolsController(AssetsController):
|
||||
|
||||
class TemplateController(Controller):
|
||||
def render_template(self, file, **vars):
|
||||
f = open("htdocs/" + file, "r")
|
||||
f = open("htdocs/" + file, "r", encoding="utf-8")
|
||||
template = Template(f.read())
|
||||
f.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user