Permalink
Browse files

Task kwargs now handled correctly. StringIO removed.

  • Loading branch information...
1 parent e7f9b28 commit cf6af7091e6566512270cd7dc455e258b351e1ea David King committed Mar 15, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 molly/conf/settings.py
View
@@ -234,11 +234,10 @@ def __call__(self):
if hasattr(self._provider, 'import_data'):
task_name = '%s.%s' % (self.klass, 'import_data')
if task_name not in app.tasks:
- from StringIO import StringIO
from celery.task import task
@task(name=task_name)
- def t():
- self._provider.import_data({}, StringIO())
+ def t(**kwargs):
+ self._provider.import_data(**kwargs)
self._provider.task = t
return self._provider

0 comments on commit cf6af70

Please sign in to comment.