Skip to content

Commit

Permalink
fixing chr1 and chr2 queries
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 24, 2024
1 parent a5e0bb9 commit 73f872b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def apply_alphanumeric_filter(self, query: dict, filter: AlphanumericFilter, col
elif filter.value == 'Y':
dict_regex['$regex']='^NC_0000'+'24'
else:
dict_regex['$regex']='^NC_0000'+filter.value
dict_regex['$regex']='^NC_0000'+filter.value+'.'+'10:g'+'|'+'^NC_0000'+filter.value+'.'+'11:g'+'|'+'^NC_0000'+filter.value+'.'+'9:g'
elif '>' in filter.value:# pragma: no cover
dict_regex=filter.value
elif '.' in filter.value:# pragma: no cover
Expand Down

0 comments on commit 73f872b

Please sign in to comment.