mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: fixed f-string formatting
This commit is contained in:
parent
2166bf9066
commit
cd0c964a40
@ -6,7 +6,7 @@ import module.config.server as server
|
|||||||
|
|
||||||
server.server = 'cn' # Don't need to edit, it's used to avoid error.
|
server.server = 'cn' # Don't need to edit, it's used to avoid error.
|
||||||
|
|
||||||
s = Screenshot(AzurLaneConfig())
|
s = Screenshot(AzurLaneConfig(config_name="alas"))
|
||||||
s.image = s.screenshot_uiautomator2()
|
s.image = s.screenshot_uiautomator2()
|
||||||
filename = datetime.now().strftime("%d-%m-%Y_%I-%M-%S_%p")
|
filename = datetime.now().strftime("%d-%m-%Y_%I-%M-%S_%p")
|
||||||
s.image_save(f'./screenshots/' + filename + ".png")
|
s.image_save(f"./screenshots/{filename}.png")
|
||||||
Loading…
Reference in New Issue
Block a user