Skip to content

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

Merged
emiliom merged 1 commit intoODM2:developmentfrom
lsetiawan:fix_gr
Jan 9, 2018
Merged

Allow sfid to be None to work with older code#139
emiliom merged 1 commit intoODM2:developmentfrom
lsetiawan:fix_gr

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

Comments