add new tests for template statistics

This commit is contained in:
Leo Hemsted
2018-04-12 14:47:56 +01:00
parent 9e8b6fd00d
commit 85fd7c3869
3 changed files with 172 additions and 21 deletions

View File

@@ -104,8 +104,8 @@ def days_ago(number_of_days):
def last_n_days(limit_days):
"""
Returns the last n dates, oldest first. Takes care of daylight savings (but returns a date, be careful how you manipulate it later! Don't
directly use the date for comparing to UTC datetimes!). Includes today.
Returns the last n dates, oldest first. Takes care of daylight savings (but returns a date, be careful how you
manipulate it later! Don't directly use the date for comparing to UTC datetimes!). Includes today.
"""
return [
datetime.combine(