Skip to content

Added 2019 time-range / updated readme.md - #8

Open
Excel1 wants to merge 4 commits into
Thor77:masterfrom
Excel1:Add-dynamically-timerange
Open

Added 2019 time-range / updated readme.md#8
Excel1 wants to merge 4 commits into
Thor77:masterfrom
Excel1:Add-dynamically-timerange

Conversation

@Excel1

@Excel1 Excel1 commented Oct 2, 2019

Copy link
Copy Markdown

No description provided.

@Thor77

Thor77 commented Oct 2, 2019

Copy link
Copy Markdown
Owner

Please remove /venv/ from your commit

Comment thread main.py Outdated
time_range = '2019-10-01T00:00:01Z..2019-10-31T23:59:59'
year = str(datetime.datetime.now().year)

time_range = year + '-10-01T00:00:01Z..' + year + '-10-31T23:59:59'

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

please use string formatting to add the year to this string, so you don't need an additional var

time_range = '{year}...{year}...'.format(year=datetime....)

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