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

Addressing Issue#76. Adding start_date, end_date parameters to the _get_json_for_random_dates function. #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anton-shablyko
Copy link

@anton-shablyko anton-shablyko commented Feb 13, 2022

Based on: #76

Extended function "_get_json_for_random_dates" to accept optional start_date and\or end_date parameters.

If only start_date is provided - the current date will be used as an end_date.
if only end_date provided - 6/16/1995 will be used as a start_date.

The function will raise value error if:

  • count number exceeds the number of dates in the provided range
  • start date is after the end date

Updated readme.md to reflect my changes.

Now function _get_json_for_random_dates accept a start_date and\or end_date
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.

1 participant