Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when clicking on a queue under 'Scheduler' #5

Closed
nsbk opened this issue Sep 16, 2015 · 3 comments
Closed

Fails when clicking on a queue under 'Scheduler' #5

nsbk opened this issue Sep 16, 2015 · 3 comments

Comments

@nsbk
Copy link
Contributor

nsbk commented Sep 16, 2015

Traceback:
File "/opt/env/26/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/env/26/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)
File "/opt/env/26/local/lib/python2.7/site-packages/django_rq_dashboard/views.py" in dispatch
  89.         return super(SuperUserMixin, self).dispatch(request, *args, **kwargs)
File "/opt/env/26/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  87.         return handler(request, *args, **kwargs)
File "/opt/env/26/local/lib/python2.7/site-packages/django/views/generic/base.py" in get
  154.         context = self.get_context_data(**kwargs)
File "/opt/env/26/local/lib/python2.7/site-packages/django_rq_dashboard/views.py" in get_context_data
  229.                       scheduler.get_jobs(with_times=True))

Exception Type: TypeError at /admin/rqd/scheduler/sultanint/
Exception Value: <lambda>() takes exactly 2 arguments (1 given)

That lambda should be using parentheses

nsbk added a commit to stoneworksolutions/django-rq-dashboard that referenced this issue Sep 16, 2015
@anadahalli
Copy link

Does not work with python 3x. Throws SyntaxError: invalid syntax

Tuple parameter unpacking is removed in python 3x according to PEP-3113.

@brutasse
Copy link
Owner

Yeah, I fixed this again for Python 3 later: 6d2904a

@anadahalli
Copy link

Still not working in Python 3. I've fixed this, please accept my pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants