Skip to content

Commit

Permalink
Merge branch 'web-ui' into web-ui-profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
VukW committed Sep 17, 2024
2 parents 2642fc7 + a78ef8d commit 972b3f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cli/medperf/entities/association.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ class Association(MedperfSchema, ApprovableSchema):
initiated_by: int
created_at: Optional[datetime]
modified_at: Optional[datetime]
name: str = "Association" # The server data doesn't have name, while MedperfSchema requires it
2 changes: 1 addition & 1 deletion cli/medperf/entities/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get(cls, uid: str, local_only: bool = False, valid_only: bool = True) -> "Te
Returns:
TestReport: Report Instance associated to the UID
"""
return super().get(uid, local_only=True, valid_only=valid_only)
return super().get(uid, local_only=True, valid_only=valid_only)

def display_dict(self):
if self.data_path:
Expand Down
2 changes: 1 addition & 1 deletion cli/medperf/web_ui/yaml_fetch/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def fetch_yaml(url: str):
# Validate YAML content
try:
yaml.safe_load(content)
except yaml.YAMLError as e:
except yaml.YAMLError:
raise HTTPException(status_code=400, detail="Invalid YAML content")

return {"content": content}
Expand Down

0 comments on commit 972b3f1

Please sign in to comment.