From 88f0ff98003000a19cab672e31f4f075a72dd5b2 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Mon, 18 Oct 2021 18:55:46 -0300 Subject: [PATCH] =?UTF-8?q?Arrumar=20c=C3=B3digo=20de=20retorno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/views/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views/trainer.py b/api/views/trainer.py index 59299cc..eac1cc4 100644 --- a/api/views/trainer.py +++ b/api/views/trainer.py @@ -72,7 +72,7 @@ def post_trainer(): db.session.add(trainer) db.session.commit() - return trainer_schema.dump(trainer) + return (trainer_schema.dump(trainer), 201) except ParsingException as e: return ParsingError(e.message) except InvalidTeam: