minor fix
This commit is contained in:
4
main.pyw
4
main.pyw
@@ -193,7 +193,7 @@ def main(driver: WebDriver):
|
|||||||
address = locate("#topbar-account-dropdown .mail").get_attribute('innerText')
|
address = locate("#topbar-account-dropdown .mail").get_attribute('innerText')
|
||||||
person = HumanName(address.split('@', 2)[0])
|
person = HumanName(address.split('@', 2)[0])
|
||||||
person.capitalize(force=True)
|
person.capitalize(force=True)
|
||||||
tell(f'成功登录 {person.full_name} ({address})')
|
tell(f'成功登录 {person.first} ({address})')
|
||||||
break
|
break
|
||||||
except: continue
|
except: continue
|
||||||
|
|
||||||
@@ -254,7 +254,7 @@ def main(driver: WebDriver):
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
outbox.put(Command('setAddress', person.full_name, address))
|
outbox.put(Command('setAddress', person.first, address))
|
||||||
driver.switch_to.window(driver.window_handles[0])
|
driver.switch_to.window(driver.window_handles[0])
|
||||||
filename = str(inbox.get())
|
filename = str(inbox.get())
|
||||||
buffer = BytesIO(inbox.get())
|
buffer = BytesIO(inbox.get())
|
||||||
|
|||||||
Reference in New Issue
Block a user