mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-06-29 09:06:47 +08:00
Chore: move hashlib to local import
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from datetime import datetime, timedelta
|
||||
import hashlib
|
||||
|
||||
from module.base.decorator import Config
|
||||
from module.base.filter import Filter
|
||||
@@ -69,6 +68,7 @@ def image_hash(image):
|
||||
if image is None:
|
||||
return ''
|
||||
|
||||
import hashlib
|
||||
return hashlib.md5(image.tobytes()).hexdigest()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user