Browse Source

Fix bug getting wrong project id upon creation

https
jakobsn 6 years ago
parent
commit
20b6f29e1f
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      src/app/models/project.py

+ 0
- 1
src/app/models/project.py View File

@@ -37,7 +37,6 @@ def set_project(categoryid, userid, project_title, project_description, project_
db.commit()
cursor.close()
users_projects = get_projects_by_owner(userid)
print("Project", users_projects)
projectid = users_projects[-1][0]
return projectid



Loading…
Cancel
Save