infinite loop graphic bar

When Period is Yearly and Date Range is Last Year in Graphic Bar
This commit is contained in:
mmdanny89 2022-06-07 09:12:23 -04:00 committed by GitHub
parent 6b476e4043
commit 4850c0d4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,8 @@ def get_dates_from_timegrain(from_date, to_date, timegrain="Daily"):
months = 1
elif "Quarterly" == timegrain:
months = 3
elif "Yearly" == timegrain:
months = 1
if "Weekly" == timegrain:
dates = [get_last_day_of_week(from_date)]