Skip to content

Commit

Permalink
Merge pull request #18 from tjkessler/dev
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
tjkessler authored Aug 15, 2023
2 parents 9a11b98 + c77b50d commit e3f47c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions plemmy/lemmyhttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ def get_person_mentions(self, limit: int = None, page: int = None,

form = create_form(locals())
form["auth"] = self.key
form["unread_only"] = str(unread_only).lower()
return get_handler(f"{self._api_url}/user/mention",
self._headers, None, params=form)

Expand Down
2 changes: 1 addition & 1 deletion plemmy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ def create_form(arguments: dict) -> dict:
Returns:
dict: constructed dictionary/form
"""
return {k: str(v).lower() if isinstance(v, bool) else v for k, v in arguments.items()
return {k: v for k, v in arguments.items()
if v is not None and k != "self"}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude = ["img*"]

[project]
name = "plemmy"
version = "0.3.4"
version = "0.3.5"
authors = [
{ name="Travis Kessler", email="[email protected]" },
]
Expand Down

0 comments on commit e3f47c7

Please sign in to comment.