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

Fix logging to file

parent 3674bdab
...@@ -83,8 +83,7 @@ def main(): ...@@ -83,8 +83,7 @@ def main():
"Operating System :: Unix", "Operating System :: Unix",
"Environment :: Console", "Environment :: Console",
"Environment :: Web Environment" "Environment :: Web Environment"
"Programming Language :: Python :: 2.6", "Programming Language :: Python :: 3.8"
"Programming Language :: Python :: 2.7"
], ],
**kwargs **kwargs
) )
......
...@@ -40,7 +40,7 @@ class JobLog(Model): ...@@ -40,7 +40,7 @@ class JobLog(Model):
def append_log(self, data): def append_log(self, data):
with open(self.log_path, "a") as f: with open(self.log_path, "a") as f:
f.write(str(data)) f.write(data.decode("utf-8"))
def get_log(self): def get_log(self):
path = self.log_path 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