Skip to content

Allow sfid to be None to work with older code #139

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

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

lsetiawan
Copy link
Member

Overview

While working on the odm2restapi, I noticed that getResults was returning nothing when sfid is None, so this should fix that and getResults should return all results when sfid is None.

@lsetiawan lsetiawan requested a review from emiliom January 8, 2018 22:46
@emiliom
Copy link
Member

emiliom commented Jan 8, 2018

getResults should return all results when sfid is None

Is this the documented behavior (eg, in the docstring)? It makes sense, but I can't remember. Is this the behavior in the last tagged release (so that the problem got introduced in the dev branch)?

@lsetiawan
Copy link
Member Author

Is this the documented behavior (eg, in the docstring)? It makes sense, but I can't remember. Is this the behavior in the last tagged release (so that the problem got introduced in the dev branch)?

This behavior is documented in docstring. I introduced this when trying to place warnings and removing builtins, so I'm fixing it here. Thanks.

@emiliom
Copy link
Member

emiliom commented Jan 9, 2018

Ok. Thanks for the clarification. Merging.

@emiliom emiliom merged commit 292dc84 into ODM2:development Jan 9, 2018
@lsetiawan lsetiawan deleted the fix_gr branch January 9, 2018 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants