mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
refac
This commit is contained in:
parent
d8fa0f426a
commit
cc8b5055f2
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ def get_license_data(app, key):
|
|||
pn, pt = nt(pb)
|
||||
|
||||
data = json.loads(aesgcm.decrypt(pn, pt, None).decode())
|
||||
if not data.get('exp') and data.get('exp') < datetime.now().date():
|
||||
if not data.get('exp') or data.get('exp') < datetime.now().date():
|
||||
return False
|
||||
|
||||
data_handler(data)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue