Skip to content

Commit

Permalink
Fix check if from_day is today and logger typo (#40)
Browse files Browse the repository at this point in the history
* Fix check if from_day is today

* Fix pre-commit
  • Loading branch information
DurgNomis-drol authored Sep 1, 2021
1 parent 9a9b839 commit 01d924c
Show file tree
Hide file tree
Showing 3 changed files with 792 additions and 792 deletions.
2 changes: 1 addition & 1 deletion mytoyota/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def get(
)
else:
raise ToyotaInternalError(
"HTTP: %i - %s" + str(resp.status_code) + " - " + resp.text
"HTTP: " + str(resp.status_code) + " - " + resp.text
)

return result
Expand Down
2 changes: 1 addition & 1 deletion mytoyota/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def get_driving_statistics( # pylint: disable=too-many-branches

today = arrow.now().format(DATE_FORMAT)

if from_date is today:
if from_date == today:
raw_statistics = None

else:
Expand Down
Loading

0 comments on commit 01d924c

Please sign in to comment.