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

get_report can't compare datetime.datetime to datetime.date #146

Open
benjaminharv opened this issue Sep 13, 2022 · 0 comments
Open

get_report can't compare datetime.datetime to datetime.date #146

benjaminharv opened this issue Sep 13, 2022 · 0 comments

Comments

@benjaminharv
Copy link

Assuming the get_report documentation is correct, this should be working.

import myfitnesspal
import datetime

client = myfitnesspal.Client()

may = datetime.date(2022, 5, 1)
june = datetime.date(2022, 6, 1)

report = client.get_report("Weight", "Progress", may, june)`

in get_report if not upper_bound >= date >= lower_bound: TypeError: can't compare datetime.datetime to datetime.date

Am I doing something wrong?

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