diff --git a/src/app/models/project.py b/src/app/models/project.py index 6271200..845f403 100644 --- a/src/app/models/project.py +++ b/src/app/models/project.py @@ -19,6 +19,14 @@ def set_project(categoryid, userid, title, project_description, project_status): categories = get_categories() return categories +def get_project_by_id(projectid): + cursor = db.cursor() + query = ("SELECT * FROM projects WHERE projectid = \"" + + projectid + "\"") + cursor.execute(query) + project = cursor.fetchall() + return project + def get_projects_by_status_and_category(categoryid, project_status): cursor = db.cursor() query = ("SELECT * FROM projects WHERE project_status = \"" + diff --git a/src/app/templates/index.html b/src/app/templates/index.html index a3e8195..9d576fd 100644 --- a/src/app/templates/index.html +++ b/src/app/templates/index.html @@ -28,7 +28,7 @@ $def with (nav, project_bulk_one, project_bulk_two, projects)
$project[4]
$project[4]
$project[4]
$project[4]