diff --git a/pyproject.toml b/pyproject.toml index 3239fc1..78c188e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wikidot" -version = "3.1.0dev4" +version = "3.1.0dev5" authors = [{ name = "ukwhatn", email = "ukwhatn@gmail.com" }] description = "Wikidot Utility Library" readme = "README.md" diff --git a/src/wikidot/module/site.py b/src/wikidot/module/site.py index ce61338..40c05ea 100644 --- a/src/wikidot/module/site.py +++ b/src/wikidot/module/site.py @@ -7,12 +7,11 @@ from wikidot.common import exceptions from wikidot.common.decorators import login_required from wikidot.module.forum import Forum -from wikidot.module.page import PageCollection, SearchPagesQuery +from wikidot.module.page import Page, PageCollection, SearchPagesQuery from wikidot.module.site_application import SiteApplication if TYPE_CHECKING: from wikidot.module.client import Client - from wikidot.module.page import Page from wikidot.module.user import User @@ -91,7 +90,7 @@ def create( force_edit: bool ページが存在する場合に上書きするかどうか """ - Page.create_or_edit( + return Page.create_or_edit( site=self.site, fullname=fullname, title=title,