Skip to content

Conversation

@itamarhaber
Copy link
Contributor

Please review and release a new version

Copy link
Contributor

@dvirsky dvirsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Itamar, thanks for this. Beyond the small API change, do provide a test for this.

self._filters.append(flt)
return self

def sortby(self, sortfld):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the API should be

def sort_by(self, field, asc = True): 

The internal class should not be intialized by the user.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(do however keep it internally, it's cool)

@itamarhaber
Copy link
Contributor Author

@dvirsky changed the API and added a test. Please note that I also fixed the test for info to be aligned to the current version.

@dvirsky dvirsky merged commit 4c90b84 into master Aug 13, 2017
@ashtul ashtul deleted the sortby branch July 6, 2020 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants