Skip to content

Commit 47fab1e

Browse files
committed
u
1 parent b453bb8 commit 47fab1e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

akari_bot_webrender/functions/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,17 @@ async def status(self, options: StatusOptions = None):
339339
contexts_open[context] = []
340340
for page in self.browser.contexts[context].pages:
341341
contexts_open[context].append(page.url)
342+
343+
contexts_total = len(self.browser.browser.contexts)
344+
342345
return {
343346
"browser_initialized": self.browser.browser is not None,
344347
"debug_mode": self.debug,
345348
"remote_only": self.remote_only,
346349
"export_logs": self.export_logs,
347350
"logs_path": str(self.logs_path) if self.logs_path else None,
348351
"name": self.name,
349-
"contexts_open": contexts_open,
352+
"contexts_open_sorted": contexts_open,
353+
"contexts_total": contexts_total,
354+
"leaked": len(contexts_open) != contexts_total,
350355
}

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.5.6"
3+
version = "0.5.7"
44
description = ""
55
authors = [
66
{name = "OasisAkari", email = "OasisAkari@gmail.com"},

0 commit comments

Comments
 (0)