fix: fetch date based on a predefined period for yearly charts
This commit is contained in:
parent
cc4f0e98ca
commit
2489a1bc9d
1 changed files with 2 additions and 0 deletions
|
|
@ -44,5 +44,7 @@ def get_from_date_from_timespan(to_date, timespan):
|
|||
months = -3
|
||||
elif "Last Year" == timespan:
|
||||
years = -1
|
||||
elif "All Time" == timespan:
|
||||
years = -50
|
||||
return add_to_date(to_date, years=years, months=months, days=days,
|
||||
as_datetime=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue