summaryrefslogtreecommitdiff
path: root/meetingtools/apps/content
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-04-14 13:35:21 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-04-14 13:35:21 +0200
commit4ae116f4091623f89df8a382694c301ffb712432 (patch)
tree33ee658c6f3b5261b29c41757e24e401a18cd66b /meetingtools/apps/content
parente25b7d32251e5c255b1d7c133158b287c505e35a (diff)
Spread the full import to fewer months at a time.
Diffstat (limited to 'meetingtools/apps/content')
-rw-r--r--meetingtools/apps/content/tasks.py2
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: