Skip to content

Commit

Permalink
Merge pull request #29 from ukwhatn/develop
Browse files Browse the repository at this point in the history
Release v3.1.0dev9
  • Loading branch information
ukwhatn authored Dec 3, 2024
2 parents e04db75 + 350a0aa commit 667b313
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

/test.py
/test.py
workbench
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wikidot"
version = "3.1.0dev8"
version = "3.1.0dev9"
authors = [{ name = "ukwhatn", email = "[email protected]" }]
description = "Wikidot Utility Library"
readme = "README.md"
Expand All @@ -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",
]
Expand Down
4 changes: 3 additions & 1 deletion src/wikidot/module/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 667b313

Please sign in to comment.