Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
quesebifurcan committed Oct 12, 2018
1 parent c4297bc commit 96bba62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aether-kernel/aether/kernel/api/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def test_submission_filter__payload(self):
payloads = [
{'a': 1},
{'a': {'b': 'abcde'}},
{'a': {'b': {'c': [1,2,3]}}}
{'a': {'b': {'c': [1, 2, 3]}}}
]
gen_payload = generators.ChoicesGenerator(values=payloads)
generate_project(submission_field_values={'payload': gen_payload})
Expand Down
3 changes: 2 additions & 1 deletion aether-kernel/aether/kernel/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class SubmissionViewSet(CustomViewSet):
filter_class = filters.SubmissionFilter

def get_queryset(self):
queryset = models.Submission.objects.all()
queryset = self.queryset
for k, v in self.request.query_params.items():
if k.startswith('payload__'):
try:
Expand All @@ -323,6 +323,7 @@ def get_queryset(self):
queryset = queryset.filter(**kwargs)
return queryset


class AttachmentViewSet(CustomViewSet):
queryset = models.Attachment.objects.all()
serializer_class = serializers.AttachmentSerializer
Expand Down

0 comments on commit 96bba62

Please sign in to comment.