From 4bbec74002504b03b75efec93c05b1852b8e26a3 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 10 Aug 2023 09:10:42 +0800 Subject: [PATCH] speed improve on updatelist --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index 5c1b9977..62306abd 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.10-slim LABEL maintainer="Websoft9" -LABEL version="0.8.10" +LABEL version="0.8.11" # Create API Directory WORKDIR /usr/src/app diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index ba262e2a..1e379840 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -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