Skip to content

Commit 37e6144

Browse files
committed
u
1 parent 50b6de5 commit 37e6144

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

akari_bot_webrender/functions/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .browser import Browser
1414
from .exceptions import ElementNotFound, RequiredURL
1515
from .options import LegacyScreenshotOptions, PageScreenshotOptions, ElementScreenshotOptions, SectionScreenshotOptions, \
16-
SourceOptions
16+
SourceOptions, StatusOptions
1717
from ..constants import templates_path, elements_to_disable, max_screenshot_height, base_width, base_height
1818

1919
env = Environment(loader=FileSystemLoader(templates_path),
@@ -344,7 +344,7 @@ async def source(self, options: SourceOptions):
344344
return _source
345345

346346
@webrender_fallback
347-
async def status(self):
347+
async def status(self, options: StatusOptions = None):
348348
pages_open = 0
349349
for context in self.browser.browser.contexts:
350350
pages_open += len(context.pages)

akari_bot_webrender/functions/options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ class SourceOptions(BaseModel):
4141
raw_text: bool = False
4242
locale: str = "zh_cn"
4343
stealth: bool = True
44+
45+
46+
class StatusOptions(BaseModel):
47+
pass

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "akari-bot-webrender"
3-
version = "0.4.9"
3+
version = "0.4.10"
44
description = ""
55
authors = [
66
{name = "OasisAkari", email = "OasisAkari@gmail.com"},

0 commit comments

Comments
 (0)