Skip to content

Commit aab0843

Browse files
committed
Show title CAPTCHA
1 parent afae3cc commit aab0843

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/luogu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .models.paste import Paste
1313
from .session import Session
1414

15-
__version__ = "0.0.1"
15+
__version__ = "0.0.2"
1616

1717
__all__ = (
1818
"AccessDeniedHttpException",

src/luogu/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def captcha(self, show: bool = True) -> bytes:
5353
if show:
5454
from PIL import Image
5555

56-
Image.open(BytesIO(r.content)).show()
56+
Image.open(BytesIO(r.content)).show(title="CAPTCHA")
5757
return r.content
5858

5959
def login(self, username: str, password: str, captcha: str) -> "dict[str]":

0 commit comments

Comments
 (0)