Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
bug 1316897 - more aggressive refresh_old_vidly_tag_domains cron job (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Bengtsson committed Nov 15, 2016
1 parent 6042b28 commit 244762a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airmozilla/main/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@cronjobs.register
@capture
def refresh_old_vidly_tag_domains():
minimum = timezone.now() - datetime.timedelta(days=7)
minimum = timezone.now() - datetime.timedelta(days=1)
qs = VidlyTagDomain.objects.filter(modified__lt=minimum)
for each in qs.order_by('modified')[:10]:
for each in qs.order_by('modified')[:20]:
tag = each.tag
private = each.private
print (tag, private, each.modified)
Expand Down

0 comments on commit 244762a

Please sign in to comment.