Skip to content

Commit

Permalink
fix(backend): reformat app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix committed Nov 12, 2019
1 parent bc6b4df commit e48a384
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ def tag(project, version, new_tag):
# overwrite the tag
dst.unlink()
dst.symlink_to(src)
return {
"message": f"Tag {new_tag} -> {version} successfully created"
}, HTTPStatus.CREATED
return (
{"message": f"Tag {new_tag} -> {version} successfully created"},
HTTPStatus.CREATED,
)
else:
return {
"message": f"Tag {new_tag} could not be created, because it would overwrite a version!"
}, HTTPStatus.CONFLICT
msg = (
f"Tag {new_tag} could not be created, because it would overwrite a version!"
)
return (
{"message": msg},
HTTPStatus.CONFLICT,
)

0 comments on commit e48a384

Please sign in to comment.