Skip to content

Commit

Permalink
Merge pull request #10 from sbussetti/master
Browse files Browse the repository at this point in the history
properly unpack filter arg
  • Loading branch information
brutasse committed Jan 20, 2016
2 parents e11c032 + 428a6d1 commit cd029f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_rq_dashboard/views.py
Expand Up @@ -230,7 +230,8 @@ def get_context_data(self, **kwargs):
scheduler = Scheduler(self.connection)
queue = Queue(self.kwargs['queue'], connection=self.connection)

def cond(job, next_run):
def cond(job_tuple):
job, next_run = job_tuple
return job.origin == queue.name
jobs = filter(cond, scheduler.get_jobs(with_times=True))

Expand Down

0 comments on commit cd029f2

Please sign in to comment.