diff --git a/.gitignore b/.gitignore index 9157801..69a2074 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,5 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -/test.py \ No newline at end of file +/test.py +workbench \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 541df4b..4b1f034 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wikidot" -version = "3.1.0dev8" +version = "3.1.0dev9" authors = [{ name = "ukwhatn", email = "ukwhatn@gmail.com" }] description = "Wikidot Utility Library" readme = "README.md" @@ -14,7 +14,7 @@ classifiers = [ ] dependencies = [ - "httpx >= 0.25,< 0.28", + "httpx >= 0.25,< 0.29", "beautifulsoup4 ~= 4.12.2", "lxml >= 4.9.3,< 5.4.0", ] diff --git a/src/wikidot/module/site.py b/src/wikidot/module/site.py index 1ff137a..7fd32fc 100644 --- a/src/wikidot/module/site.py +++ b/src/wikidot/module/site.py @@ -302,7 +302,9 @@ def member_lookup(self, user_name: str, user_id: int | None = None): return False for user in users: - if user.name == user_name and (user_id is None or user.id == user_id): + if user.name.strip() == user_name and ( + user_id is None or user.id == user_id + ): return True return False