Update version 0.1.0 #1

Merged
Hannah merged 16 commits from Devbranch into main 2026-08-30 23:19:46 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit a87ed0b0f3 - Show all commits

Syntax fixes

Hannah dagemark 2026-08-09 15:19:01 +02:00

View file

@ -108,7 +108,8 @@ def delete_from_database_where(
for instance in results: for instance in results:
session.delete(instance) session.delete(instance)
session.commit()
session.commit()
remainder = session.exec(select(query).where(variable == value)).all() remainder = session.exec(select(query).where(variable == value)).all()
return remainder return remainder

View file

@ -19,13 +19,11 @@ def get_default():
@router.get("/all") @router.get("/all")
def get_all_projects(parent: int | None = None): def get_all_projects():
if parent:
return get_with_parent(parent)
return get_all() return get_all()
@router.get("/project/{project_id}") @router.get("/{project_id}")
def get_project_by_id(project_id: int): def get_project_by_id(project_id: int):
return get_by_id(project_id) return get_by_id(project_id)