Skip to content

Commit

Permalink
adding user_id to parent_information
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Aug 28, 2024
1 parent 6442199 commit d6b110c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/links/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_confirmed_parents_in_list(

result.append(
ParentInformation(
user_id=list_link.user_id,
first_name=user_information.first_name,
last_name=user_information.name,
position_in_list=list_link.position_in_list,
Expand Down Expand Up @@ -84,6 +85,7 @@ def get_waiting_parents_in_list(

result.append(
ParentInformation(
user_id=list_link.user_id,
first_name=user_information.first_name,
last_name=user_information.name,
position_in_list=list_link.position_in_list,
Expand Down
1 change: 1 addition & 0 deletions app/api/links/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class LinkListSchemaOut(BaseModel):


class ParentInformation(BaseModel):
user_id: int
first_name: str
last_name: str
position_in_list: int
Expand Down

0 comments on commit d6b110c

Please sign in to comment.