Skip to content

Commit

Permalink
bugfix get_all_clients.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed May 26, 2024
1 parent a608637 commit fe2a9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/get_all_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_clients(db: Session, name: Optional[str], page: int, limit: int):
ORDER BY c.id
OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY
"""
count_query = f"SELECT COUNT(DISTINCT c.id) FROM clients c {where_clause}"
count_query = f"SELECT COUNT(DISTINCT c.id) FROM client c {where_clause}"
params = {'name': f'%{name}%', 'offset': (page - 1) * limit, 'limit': limit}
else:
full_query = f"""
Expand Down

0 comments on commit fe2a9a2

Please sign in to comment.