Arrumar código de retorno

This commit is contained in:
Augusto Gunsch 2021-10-18 18:55:46 -03:00
parent 76db956537
commit 88f0ff9800
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 1 deletions

View File

@ -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: