Skip to content

Commit

Permalink
fix: saved_only works for users now (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborgcatboy authored May 3, 2024
1 parent d96727e commit 5d95448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pythorhead/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def get(
Returns:
dict: user view
"""
params: dict[str, Any] = {key: value for key, value in locals().items() if value is not None and key != "self"}
params: dict[str, Any] = {key: value for key, value in locals().items() if value is not None and value is not True and key != "self"}
if saved_only:
params['saved_only'] = 'true'
return self._requestor.api(Request.GET, "/user", params=params)

def purge(
Expand Down

0 comments on commit 5d95448

Please sign in to comment.