Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-dev committed Jan 31, 2025
1 parent 8f883bf commit cc9149c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mavedb/routers/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def lookup_variants(
return [variants_by_allele_id[allele_id] for allele_id in request.clingen_allele_ids]


@router.post(
@router.get(
"/variants/{urn}",
status_code=200,
response_model=VariantWithScoreSet,
Expand Down
5 changes: 3 additions & 2 deletions src/mavedb/view_models/clinvar_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SavedClinvarVariant(ClinvarVariantBase):
id: int
modification_date: date
creation_date: date
mapped_variants: Sequence[SavedMappedVariant]
#mapped_variants: Sequence[SavedMappedVariant]

record_type: str = None # type: ignore
_record_type_factory = record_type_validator()(set_record_type)
Expand All @@ -40,7 +40,8 @@ class Config:

# Properties to return to non-admin clients
class ClinvarVariant(SavedClinvarVariant):
mapped_variants: Sequence[MappedVariant]
pass
#mapped_variants: Sequence[MappedVariant]


# ruff: noqa: E402
Expand Down

0 comments on commit cc9149c

Please # to comment.