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

fix query filtering for unique #85

Closed
jdkent opened this issue Aug 26, 2021 · 1 comment
Closed

fix query filtering for unique #85

jdkent opened this issue Aug 26, 2021 · 1 comment
Labels

Comments

@jdkent
Copy link
Member

jdkent commented Aug 26, 2021

if hasattr(m, 'source_id'):
q = q.filter_by(source_id=None)
elif hasattr(m, 'study'):
q = q.join(Study).filter_by(source_id=None)
elif hasattr(m, 'analysis'):
q = q.join(Analysis).join(Study).filter_by(source_id=None)
else:

source_id could be not none, just need to find when source is not neurostore or if source is neurostore but there is no source_id

@jdkent jdkent added the backend label Aug 26, 2021
@jdkent
Copy link
Member Author

jdkent commented Sep 22, 2021

closed by #82 and #86

@jdkent jdkent closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant