Skip to content

Commit

Permalink
chore: adjust flake8 to ignore W503, since it's conflicting with W504
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 2, 2024
1 parent 23972e9 commit 533d92c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/.flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]

# Ignore unused imports
ignore = F401
ignore = F401,W503

max-line-length = 125

Expand Down
8 changes: 4 additions & 4 deletions backend/api/views/user_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def search(self, request: Request) -> Response:
queryset = self.get_queryset().annotate(
full_name=Concat('first_name', Value(' '), 'last_name')
).filter(
Q(id__icontains=search)
| Q(username__icontains=search)
| Q(email__icontains=search)
| Q(full_name__icontains=search)
Q(id__icontains=search) |
Q(username__icontains=search) |
Q(email__icontains=search) |
Q(full_name__icontains=search)
)

# Filter the queryset based on selected roles
Expand Down

0 comments on commit 533d92c

Please sign in to comment.