mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-27 13:20:29 +08:00
更新版本号v1.4.3
This commit is contained in:
parent
7f25c219d8
commit
61b13808fb
@ -9,7 +9,7 @@
|
||||
</router-link>
|
||||
</div>
|
||||
<div class="version">
|
||||
v1.4.2
|
||||
v1.4.3
|
||||
</div>
|
||||
<sidebar></sidebar>
|
||||
</el-aside>
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user