页面显示当前版本号与更新时间

This commit is contained in:
ngfchl
2022-10-15 22:28:52 +08:00
parent 578e0a9c8b
commit ade20b75ad
2 changed files with 10 additions and 4 deletions

View File

@@ -350,7 +350,9 @@ def update_page(request):
'local_logs': local_logs,
'update_notes': update_notes,
'update': update,
'update_tips': update_tips
'update_tips': update_tips,
'branch': ('开发版:{},更新于{}' if branch == 'dev' else '稳定版:{},更新于{}').format(
local_logs[0].get('hexsha'), local_logs[0].get('date'))
})