Skip to content

Commit

Permalink
Update resources.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gossty committed Sep 13, 2024
1 parent 5b235db commit 6b4a718
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qiita_pet/handlers/resources.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from tornado.gen import coroutine, Task
from tornado.web import authenticated, HTTPError
import json
Expand Down Expand Up @@ -105,7 +104,7 @@ def post(self):
"tcalc": tcalc, "tfail": tfail,
"initial_load": False
}
self.write(json.dumps(response_data))
self.write(json.dumps(response_data) + "\n")

except json.JSONDecodeError:
self.set_status(400)
Expand All @@ -129,7 +128,7 @@ def post(self):
"initial_load": False
}
self.set_status(200)
self.write(json.dumps(response_data))
self.write(json.dumps(response_data) + "\n")
else:
self.set_status(500)
self.finish({"error": str(e)})

0 comments on commit 6b4a718

Please sign in to comment.