Skip to content

Commit

Permalink
Merge branch 'rewrite/python' of github.com:DZD-eV-Diabetes-Research/…
Browse files Browse the repository at this point in the history
…DZDMedLog into rewrite/python
  • Loading branch information
JTaeger committed Jan 23, 2025
2 parents 7ec63a2 + ff9b5a8 commit 3e157b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MedLog/backend/medlogserver/api/routes/routes_interview.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def get_last_non_completed_interview(
)
async def create_interview(
interview: Annotated[InterviewCreateAPI, Body()],
event_id: Annotated[str, Path()],
event_id: Annotated[uuid.UUID, Path()],
user: Annotated[User, Security(get_current_user)],
study_access: UserStudyAccess = Security(user_has_study_access),
event_crud: EventCRUD = Depends(EventCRUD.get_crud),
Expand Down
8 changes: 4 additions & 4 deletions MedLog/backend/medlogserver/db/_base_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def list(

async def _get(
self,
id_: str | UUID,
id_: UUID,
raise_exception_if_none: Exception = None,
) -> Optional[GenericCRUDReadType]:
# get() could be overwritten in a child class that why we create an internal _get() function that can be used by other funcs like update()
Expand All @@ -138,7 +138,7 @@ async def _get(

async def get(
self,
id_: str | UUID,
id_: UUID,
raise_exception_if_none: Exception = None,
) -> Optional[GenericCRUDReadType]:

Expand Down Expand Up @@ -222,7 +222,7 @@ async def find(
async def update(
self,
update_obj: GenericCRUDUpdateType | GenericCRUDTableType,
id_: str | UUID = None,
id_: UUID = None,
raise_exception_if_not_exists=None,
) -> GenericCRUDReadType:
id_ = id_ if id_ is not None else getattr(update_obj, "id", None)
Expand All @@ -242,7 +242,7 @@ async def update(

async def delete(
self,
id_: str | UUID,
id_: UUID,
raise_exception_if_not_exists=None,
force_pragma_foreign_keys: bool = False,
):
Expand Down

0 comments on commit 3e157b2

Please sign in to comment.