diff options
author | Johan Lundberg <lundberg@nordu.net> | 2014-04-14 13:35:21 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2014-04-14 13:35:21 +0200 |
commit | 4ae116f4091623f89df8a382694c301ffb712432 (patch) | |
tree | 33ee658c6f3b5261b29c41757e24e401a18cd66b /meetingtools/apps/content | |
parent | e25b7d32251e5c255b1d7c133158b287c505e35a (diff) |
Spread the full import to fewer months at a time.
Diffstat (limited to 'meetingtools/apps/content')
-rw-r--r-- | meetingtools/apps/content/tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meetingtools/apps/content/tasks.py b/meetingtools/apps/content/tasks.py index eef0e58..ad426ef 100644 --- a/meetingtools/apps/content/tasks.py +++ b/meetingtools/apps/content/tasks.py @@ -93,7 +93,7 @@ def get_domain_content(domain_tag): #@periodic_task(run_every=crontab(hour="1", minute="0", day_of_week="*")) def timed_full_import(): years = [2009, 2010, 2011, 2012, 2013, 2014] - months = [(1, 7), (8, 12)] # Ugly hack as June does not have 31 days + months = [(1, 3), (4, 7), (8, 10), (9, 12)] for acc in ACCluster.objects.all(): nr = 0 for year in years: |