Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HoodieRocks committed Dec 2, 2023
1 parent 95307b3 commit b3cbb03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion routes/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ def new(project: int):
conn = util.make_connection()
v = util.exec_query(
conn, "SELECT * FROM versions WHERE version_code = :vc", vc=data["version_code"]
).one()
).all()

if len(v) > 1:
return "Version with that version code already exists!", 409

v = v[0]

o = {
"name": v[0],
Expand Down

0 comments on commit b3cbb03

Please sign in to comment.