Skip to content

Commit

Permalink
fix: replace years with days in reports base class
Browse files Browse the repository at this point in the history
  • Loading branch information
sajarin committed Sep 1, 2023
1 parent ef4ba5c commit 71c88c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def __init__(self, from_date: Optional[pendulum.date] = None, to_date: Optional[
super().__init__(**kwargs)

current_date = pendulum.now().date()
self._from_date = from_date or current_date.subtract(years=1)
self._from_date = from_date or current_date.subtract(days=365)
self._to_date = to_date or current_date
# `to` date greater than `from` date causes an exception on Harvest
if self._from_date > current_date:
Expand Down

0 comments on commit 71c88c7

Please sign in to comment.