更新版本号v1.4.3

This commit is contained in:
John Smith 2020-05-10 14:14:14 +08:00
parent 7f25c219d8
commit 61b13808fb
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</router-link>
</div>
<div class="version">
v1.4.2
v1.4.3
</div>
<sidebar></sidebar>
</el-aside>

View File

@ -4,7 +4,7 @@ import asyncio
import aiohttp
VERSION = 'v1.4.2'
VERSION = 'v1.4.3'
def check_update():
@ -17,8 +17,10 @@ async def _do_check_update():
async with session.get('https://api.github.com/repos/xfgryujk/blivechat/releases/latest') as r:
data = await r.json()
if data['name'] != VERSION:
print('---------------------------------------------')
print('New version available:', data['name'])
print(data['body'])
print('Download:', data['html_url'])
print('---------------------------------------------')
except aiohttp.ClientConnectionError:
print('Failed to check update: connection failed')