Commit 681dae17 authored by EKbfh's avatar EKbfh 🐼
Browse files

Fix logging to file

parent 3674bdab
......@@ -83,8 +83,7 @@ def main():
"Operating System :: Unix",
"Environment :: Console",
"Environment :: Web Environment"
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7"
"Programming Language :: Python :: 3.8"
],
**kwargs
)
......
......@@ -40,7 +40,7 @@ class JobLog(Model):
def append_log(self, data):
with open(self.log_path, "a") as f:
f.write(str(data))
f.write(data.decode("utf-8"))
def get_log(self):
path = self.log_path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment