Skip to content

Commit

Permalink
add Result's new fields to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan7n committed Nov 25, 2023
1 parent a5ecee2 commit 1687b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/medperf/entities/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Result(Entity, Uploadable, MedperfSchema, ApprovableSchema):
dataset: int
results: dict
metadata: dict = {}
user_metadata: dict = {}

def __init__(self, *args, **kwargs):
"""Creates a new result instance"""
Expand Down
2 changes: 1 addition & 1 deletion cli/medperf/entities/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class MedperfSchema(MedperfBaseSchema):
id: Optional[int]
name: str = Field(..., max_length=64)
owner: Optional[int]
is_valid: bool = True
created_at: Optional[datetime]
modified_at: Optional[datetime]

Expand All @@ -92,7 +93,6 @@ def name_max_length(cls, v, *, values, **kwargs):
class DeployableSchema(BaseModel):
# TODO: This must change after allowing edits
state: str = "OPERATION"
is_valid: bool = True


class ApprovableSchema(BaseModel):
Expand Down

0 comments on commit 1687b34

Please sign in to comment.