Skip to content

Commit

Permalink
parameter relaxing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Sep 3, 2024
1 parent af7d307 commit a20816c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion beacon/db/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ def apply_alphanumeric_filter(query: dict, filter: AlphanumericFilter, collectio
#LOG.debug(filter.id)
if collection == 'g_variants' and scope != 'individual' and scope != 'run':
if filter.id == "identifiers.genomicHGVSId":
LOG.debug('hoaaaa')
list_chromosomes = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22']
dict_regex={}
if filter.value == 'GRCh38':
Expand Down
3 changes: 1 addition & 2 deletions beacon/request/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class RequestParams(CamelModel):

class SequenceQuery(BaseModel):
referenceName: Union[str,int]
start: Union[int, str]
start: Union[int, list, str]
alternateBases:str
referenceBases: str
clinicalRelevance: Optional[str] =None
Expand Down Expand Up @@ -193,7 +193,6 @@ def from_request(self, request: Request) -> Self:
RangeQuery(**request_params)
return self
except Exception as e:
LOG.debug('holaaaaaa')
pass
try:
SequenceQuery(**request_params)
Expand Down

0 comments on commit a20816c

Please sign in to comment.