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

Change default limits to 100 to match docs #44

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Conversation

guillochon
Copy link
Contributor

The docs say the default return is 100, whereas the code is 1000. I think having a smaller number as a default makes more sense, as the defaults will primarily be used by new users figuring out the library.

The docs say the default return is 100, whereas the code is 1000. I think having a smaller number as a default makes more sense, as the defaults will primarily be used by new users figuring out the library.
Copy link
Owner

@hammem hammem left a comment

Choose a reason for hiding this comment

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

Thanks, @guillochon ! Can you define it as a 'constant', so it's easier to maintain or if folks want to change it when using the library?

Add `DEFAULT_RECORD_LIMIT` constant
@guillochon
Copy link
Contributor Author

Done.

Copy link
Owner

@hammem hammem left a comment

Choose a reason for hiding this comment

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

One small thing and then we can merge!

@@ -17,6 +17,7 @@
ERRORS_KEY = "error_code"
SESSION_DIR = ".mm"
SESSION_FILE = f"{SESSION_DIR}/mm_session.pickle"
DEFAULT_RECORD_LIMIT = 100
Copy link
Owner

Choose a reason for hiding this comment

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

nit: please alphabetize

@hammem hammem merged commit c57b2f9 into hammem:main Nov 23, 2023
1 check passed
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