Skip to content

Commit

Permalink
更新版本号v1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xfgryujk committed May 10, 2020
1 parent 7f25c21 commit 61b1380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</router-link>
</div>
<div class="version">
v1.4.2
v1.4.3
</div>
<sidebar></sidebar>
</el-aside>
Expand Down
4 changes: 3 additions & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import aiohttp

VERSION = 'v1.4.2'
VERSION = 'v1.4.3'


def check_update():
Expand All @@ -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')

0 comments on commit 61b1380

Please sign in to comment.