speed improve on updatelist

This commit is contained in:
qiaofeng1227 2023-08-10 09:10:42 +08:00
parent 1e2af6d4fd
commit 4bbec74002
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
FROM python:3.10-slim
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.8.10"
LABEL version="0.8.11"
# Create API Directory
WORKDIR /usr/src/app

View file

@ -150,7 +150,6 @@ def get_update_list():
ret['date'] = date
ret['content'] = content
return ret
# 获取 appstore update info
def get_appstore_update_list():
@ -181,9 +180,9 @@ def get_appstore_update_list():
for change in change_log[1:]:
if change != '':
content.append(change)
else:
ret['update'] = False
core_compare = AppStoreCore()
else:
ret['update'] = False
ret['date'] = date
ret['content'] = content
ret['core_compare'] = core_compare