refactor dao_get_template_usage now that limit_days no longer used

doesnt need to have any conditional stuff now - always requires a date
This commit is contained in:
Leo Hemsted
2018-04-13 14:38:39 +01:00
parent 7dc34fc3a4
commit 310b8eda4c
3 changed files with 16 additions and 56 deletions

View File

@@ -62,7 +62,6 @@ def get_template_statistics_for_last_n_days(service_id, limit_days):
template_stats_by_id = Counter()
for day in last_n_days(limit_days):
print('\n')
# "{SERVICE_ID}-template-usage-{YYYY-MM-DD}"
key = cache_key_for_service_template_usage_per_day(service_id, day)
stats = redis_store.get_all_from_hash(key)