mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 17:40:35 +08:00
edit update_info
This commit is contained in:
parent
030fcb9886
commit
8e44dab5b5
@ -10,7 +10,7 @@ COPY static ./static
|
||||
COPY requirements.txt main.py ./
|
||||
RUN apt update
|
||||
|
||||
# Install supervisord
|
||||
# Install supervisords
|
||||
RUN apt install -y supervisor
|
||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY config/cmd.sh /cmd.sh
|
||||
|
@ -117,14 +117,16 @@ def get_update_list():
|
||||
if change != '':
|
||||
content.append(change)
|
||||
|
||||
ret['latest_version'] = version
|
||||
ret['date'] = date
|
||||
ret['content'] = content
|
||||
ret2= {}
|
||||
ret2['latest_version'] = version
|
||||
ret2['date'] = date
|
||||
ret2['content'] = content
|
||||
ret['Update_content']=ret2
|
||||
return ret
|
||||
else:
|
||||
ret['Update_content']=None
|
||||
return ret
|
||||
|
||||
|
||||
def conbine_list(installing_list, installed_list):
|
||||
app_list = installing_list + installed_list
|
||||
result_list = []
|
||||
|
@ -52,10 +52,12 @@ domain = "  Domain_set:{\n\n" \
|
||||
"    domains:域名列表\n\n" \
|
||||
"    default_domain:默认域名\n\n  }\n\n}\n\n"
|
||||
|
||||
update = "  Update_content: {\n\n" \
|
||||
update = "  Compare_content: 新旧版本内容{\n\n" \
|
||||
"  current_version: 当前版本,\n\n" \
|
||||
"  Update_content: {\n\n" \
|
||||
"    version: 最新版本\n\n" \
|
||||
"    date: 更新日期\n\n" \
|
||||
"    content: 更新内容\n\n  }\n\n}\n\n"
|
||||
"    content: 更新内容\n\n  }\n\n}\n\n}\n\n"
|
||||
|
||||
appstore_update = "  Update_content: [] 更新内容\n\n  \n\n}\n\n"
|
||||
auto = "  auto_update: 目前的自动更新状态\n\n  \n\n}\n\n"
|
||||
@ -360,7 +362,7 @@ def AppUpdateList(request: Request):
|
||||
get_headers(request)
|
||||
ret = {}
|
||||
ret['ResponseData'] = {}
|
||||
ret['ResponseData']['Update_content'] = manage.get_update_list()
|
||||
ret['ResponseData']['Compare_content'] = manage.get_update_list()
|
||||
myLogger.info_logger(ret)
|
||||
response = JSONResponse(content=ret)
|
||||
except CommandException as ce:
|
||||
|
Loading…
Reference in New Issue
Block a user