Change personal tracking rule update frequency to run every hour.

- Legacy-Id: 4623
This commit is contained in:
Henrik Levkowetz 2012-07-20 11:34:23 +00:00
parent 9ff6d889aa
commit 207f90b58f

View file

@ -13,7 +13,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
now = datetime.datetime.now()
rules = Rule.objects.filter(last_updated__lt=now - datetime.timedelta(hours=12))
rules = Rule.objects.filter(last_updated__lt=now - datetime.timedelta(hours=1))
count = rules.count()
index = 1
for rule in rules: