Skip to content

Commit

Permalink
Patch samples-in-collaboration endpoint (#3637) (patch)
Browse files Browse the repository at this point in the history
### Fixed

- Return is_tumour instead of tumour in samples_in_collaboration
  • Loading branch information
islean authored Aug 26, 2024
1 parent 14c57a4 commit e1744bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cg/server/dto/samples/samples_response.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime

from pydantic import BaseModel

from cg.constants.subject import Sex
Expand Down Expand Up @@ -88,7 +89,7 @@ class SampleDTO(BaseModel):
concentration_ng_ul: int | None = None
panels: list[str] | None = None
status: str | None = None
tumour: bool | None = None
is_tumour: bool | None = None
reference_genome: str | None = None
customer: CustomerDto | None = None

Expand Down
2 changes: 1 addition & 1 deletion cg/services/sample_service/dto_mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create_sample_dto(sample: Sample) -> SampleDTO:
priority=sample.priority_human,
reference_genome=sample.reference_genome,
subject_id=sample.subject_id,
tumour=sample.is_tumour,
is_tumour=sample.is_tumour,
application=application,
application_version=application_version,
sex=sample.sex,
Expand Down

0 comments on commit e1744bd

Please sign in to comment.