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

irw.results_archive date_range not working? #1

Open
Fuzzwah opened this issue Jul 18, 2014 · 1 comment
Open

irw.results_archive date_range not working? #1

Fuzzwah opened this issue Jul 18, 2014 · 1 comment

Comments

@Fuzzwah
Copy link

Fuzzwah commented Jul 18, 2014

I'm attempting to limit the number of event results returned to just the last couple of days:

r = irw.results_archive(event_types=(ct.EVENT_RACE,), date_range=('2014-07-16','2014-07-18'))
print(r[1])

That prints out 76, which is my total number of races ever.

@Fuzzwah
Copy link
Author

Fuzzwah commented Jul 18, 2014

I worked it out.

I should have mentioned that I'm running this in python 2.7.

I found that I had to import Decimal and then do this kind of thing:

data['starttime_low'] = Decimal(tc(date_range[0]))

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

No branches or pull requests

1 participant