~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/jobs/ingest.py

[r=abentley][bug=][author=adeuring] show downloads in past 7, 30, 180 days on the charm details page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
674
674
    charm['downloads_in_past_30_days'] = count
675
675
    count = store.get_download_counts(charm)
676
676
    charm['downloads'] = count[0][0] if count else 0
 
677
    count = store.count_downloads_in_days(charm, 7, date.today())
 
678
    charm['downloads_in_past_7_days'] = count
 
679
    count = store.count_downloads_in_days(charm, 182, date.today())
 
680
    charm['downloads_in_past_half_year'] = count
677
681
 
678
682
 
679
683
def update_date_created(charm, log):