mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [update v2.6] fix faup encoding
This commit is contained in:
parent
ef55024195
commit
7420ee26a9
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@ def get_all_item(screenshot_sha256):
|
|||
def sanitize_domain(domain):
|
||||
faup.decode(domain)
|
||||
domain_sanitized = faup.get()
|
||||
return domain_sanitized['domain'].lower()
|
||||
domain_sanitized = domain_sanitized['domain']
|
||||
try:
|
||||
domain_sanitized = domain_sanitized.decode()
|
||||
except:
|
||||
pass
|
||||
return domain_sanitized.lower()
|
||||
|
||||
def update_db(screenshot_sha256):
|
||||
screenshot_items = get_all_item(screenshot_sha256)
|
||||
|
|
Loading…
Reference in a new issue