Browse Source

list, not tuple

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
50f1f38fe3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      wiki/task_manager.py

+ 1
- 1
wiki/task_manager.py View File

@@ -57,7 +57,7 @@ def start_tasks(now=time.gmtime()):
now.tm_wday) # get list of tasks to run this turn now.tm_wday) # get list of tasks to run this turn


for task in tasks: for task in tasks:
if isinstance(task, tuple): # they've specified kwargs
if isinstance(task, list): # they've specified kwargs
start_task(task[0], **task[1]) # so pass those to start_task start_task(task[0], **task[1]) # so pass those to start_task
else: # otherwise, just pass task_name else: # otherwise, just pass task_name
start_task(task) start_task(task)


Loading…
Cancel
Save