Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by "contains" doesn't work with "_" #290

Open
davidhpark opened this issue Jan 16, 2019 · 0 comments
Open

Filtering by "contains" doesn't work with "_" #290

davidhpark opened this issue Jan 16, 2019 · 0 comments

Comments

@davidhpark
Copy link
Contributor

Filtering for '_' using the 'contains' operator does not work:

In [50]: [q['amino_acid_change'] for q in query.filter(amino_acid_change__contains='_')]
Out[50]: []

However, filtering for '_' does work using the 'regexp' operator:

In [49]: [q['amino_acid_change'] for q in query.filter(amino_acid_change__regexp='.*_.*')]
Out[49]: 
[u'G504_P511del',
 ...
 u'P491_G492del']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant