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

removed .count() from filter_machines in uptime.py #153

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

w0de
Copy link
Contributor

@w0de w0de commented Nov 6, 2017

This filter should return a list of machines, not a count. Looks like a cp mistake :).

Eg error cause by this:

[03/Nov/2017 21:33:15] ERROR [django.request:124] Internal Server Error: /tableajax/Uptime/alert/ Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 39, in inner response = get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view return view_func(request, *args, **kwargs) File "/home/docker/sal/server/views.py", line 443, in tableajax searched_machines = machines.order_by(order_string) AttributeError: 'int' object has no attribute 'order_by'

@grahamgilbert
Copy link
Member

LGTM

@grahamgilbert grahamgilbert merged commit f11361a into salopensource:master Nov 6, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants