Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone authored and AlisoSouza committed Dec 12, 2024
1 parent 8a72f66 commit 4b5b936
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion nexus/logs/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ def test_tag_filter(self):
)
response.render()
content = json.loads(response.content)

self.assertEqual(response.status_code, 200)
self.assertEquals(len(content.get("results")), 10)

Expand Down
2 changes: 1 addition & 1 deletion nexus/logs/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_queryset(self):
}
logs = [log for log in logs if log.message.response_status == status.get(tag_param) and log.reflection_data.get("tag") != "action_started"]

if not logs.exists():
if not logs:
return MessageLog.objects.none()

return logs
Expand Down

0 comments on commit 4b5b936

Please sign in to comment.