mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
speed improve on updatelist
This commit is contained in:
parent
1e2af6d4fd
commit
4bbec74002
@ -1,6 +1,6 @@
|
|||||||
FROM python:3.10-slim
|
FROM python:3.10-slim
|
||||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||||
LABEL version="0.8.10"
|
LABEL version="0.8.11"
|
||||||
|
|
||||||
# Create API Directory
|
# Create API Directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
@ -151,7 +151,6 @@ def get_update_list():
|
|||||||
ret['content'] = content
|
ret['content'] = content
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
# 获取 appstore update info
|
# 获取 appstore update info
|
||||||
def get_appstore_update_list():
|
def get_appstore_update_list():
|
||||||
local_path = '/usr/share/cockpit/appstore/appstore.json'
|
local_path = '/usr/share/cockpit/appstore/appstore.json'
|
||||||
@ -181,9 +180,9 @@ def get_appstore_update_list():
|
|||||||
for change in change_log[1:]:
|
for change in change_log[1:]:
|
||||||
if change != '':
|
if change != '':
|
||||||
content.append(change)
|
content.append(change)
|
||||||
|
core_compare = AppStoreCore()
|
||||||
else:
|
else:
|
||||||
ret['update'] = False
|
ret['update'] = False
|
||||||
core_compare = AppStoreCore()
|
|
||||||
ret['date'] = date
|
ret['date'] = date
|
||||||
ret['content'] = content
|
ret['content'] = content
|
||||||
ret['core_compare'] = core_compare
|
ret['core_compare'] = core_compare
|
||||||
|
Loading…
Reference in New Issue
Block a user