Arrumar código de retorno
This commit is contained in:
parent
76db956537
commit
88f0ff9800
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue