Skip to content

Commit

Permalink
Change CaseModel.
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizsavinhas committed Jan 13, 2025
1 parent fd80ccb commit 59a06b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cg/models/delivery_report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing_extensions import Annotated

from cg.constants import NA_FIELD, REPORT_SUPPORTED_WORKFLOW
from cg.models.delivery_report.sample import ApplicationModel, SampleModel
from cg.models.delivery_report.sample import SampleModel
from cg.models.delivery_report.validators import (
get_analysis_type_as_string,
get_date_as_string,
Expand Down Expand Up @@ -115,14 +115,14 @@ class CaseModel(BaseModel):
id: case ID; source: StatusDB/family/internal_id
samples: list of samples associated to a case/family
data_analysis: workflow attributes
applications: case associated unique application tags
application_tags: case associated unique application tags
"""

name: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
id: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
samples: list[SampleModel]
data_analysis: DataAnalysisModel
applications: list[ApplicationModel]
applications: list[str]


class ReportModel(BaseModel):
Expand Down

0 comments on commit 59a06b3

Please sign in to comment.