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

allow user to get all follows by user #48

Merged
merged 4 commits into from
Oct 15, 2018
Merged

Conversation

nipun-AiR
Copy link
Contributor

for #33

def get_follows(self, user_id, limit=25, offset=0, direction=DIRECTION_DESC,
sort_by=USERS_SORT_BY_CREATED_AT):
if limit > 100:
sort_by=USERS_SORT_BY_CREATED_AT, get_all=False):
Copy link
Owner

Choose a reason for hiding this comment

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

Rather than changing a get_follows function and adding a parameter that changes how the function behaves, could you create another function get_all_follows or something like that, that would return all follows by a user?
It's much nicer to have two functions than one being changed by a parameter.

@tsifrer tsifrer merged commit 2ecd3d3 into tsifrer:master Oct 15, 2018
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