coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
789 stars 138 forks source link

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

Open benjaminharv opened 1 year ago

benjaminharv commented 1 year ago

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?