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

_initial_invalid_state not reset to true on searchFilesInitialize #26

Open
joaquin-freepik opened this issue Aug 8, 2023 · 0 comments

Comments

@joaquin-freepik
Copy link

Issue report

Brief description of issue

Code in searchFilesInitialize expects _initial_invalid_state to be true before making an API call. This flag is set to true in the constructor. After a first call to searchFilesInitialize everything works correctly, you can call afterwards getNextResponse, getPreviousResponse, etc.

However if you try to start a new search with the SearchFiles object calling again searchFilesInitialize, you will not be able to use getNextResponse, getPreviousResponse, etc. because searchFilesInitialize doesn't reset _initial_invalid_state to true.

Proposed fix (if applicable)

Add _initial_invalid_state = true; add the end of searchFilesInitialize.

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

No branches or pull requests

1 participant