Syntax fixes
This commit is contained in:
parent
e72ec07c45
commit
a87ed0b0f3
2 changed files with 4 additions and 5 deletions
|
|
@ -108,6 +108,7 @@ def delete_from_database_where(
|
|||
|
||||
for instance in results:
|
||||
session.delete(instance)
|
||||
|
||||
session.commit()
|
||||
|
||||
remainder = session.exec(select(query).where(variable == value)).all()
|
||||
|
|
|
|||
|
|
@ -19,13 +19,11 @@ def get_default():
|
|||
|
||||
|
||||
@router.get("/all")
|
||||
def get_all_projects(parent: int | None = None):
|
||||
if parent:
|
||||
return get_with_parent(parent)
|
||||
def get_all_projects():
|
||||
return get_all()
|
||||
|
||||
|
||||
@router.get("/project/{project_id}")
|
||||
@router.get("/{project_id}")
|
||||
def get_project_by_id(project_id: int):
|
||||
return get_by_id(project_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue