Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
yuudi committed Jan 31, 2021
1 parent e5c5084 commit 1cdab2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
shell: cmd
run: |
cd .\src\client
sed -e "s/\"\[v.*semver$/\"[test-${{ github.sha }}]\"/" -i.bak yobot.py
sed -e "s/\"\[v.*semver$/\"[test-$(git rev-list --count HEAD)-${{ github.sha }}]\"/" -i.bak yobot.py
pip install -r requirements.txt
pip install pyinstaller
PYTHONOPTIMIZE=0
Expand Down
2 changes: 2 additions & 0 deletions src/client/public/template/admin/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ <h1>yobot设置</h1>
</el-form-item>
<el-form-item>
<el-button type="info" @click="setting.public_address = window.location.origin+'/'">填入当前地址</el-button>
<!--
<el-button type="info" @click="domainApply = true">获取 yobot 域名</el-button>
-->
</el-form-item>
<el-dialog title="申请yobot域名" :visible.sync="domainApply">
<el-form>
Expand Down
8 changes: 4 additions & 4 deletions src/client/ybplugins/web_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ async def wrapper(*args, nocache=False): # args must be hashable


@async_cached_func(128)
async def _ip_location(ip):
async def _ip_location(ip) -> str:
async with aiohttp.request("GET", url=f'http://freeapi.ipip.net/{ip}') as response:
if response.status != 200:
raise ServerError(f'http code {response.status} from ipip.net')
res = await response.json()
return res
return ''.join(res)


class WebUtil:
Expand Down Expand Up @@ -82,8 +82,8 @@ async def yobot_api_iplocation():
try:
location = await _ip_location(ip)
except:
location = ['unknown']
return jsonify(location)
location = 'unknown'
return jsonify([location])

@app.route(
urljoin(self.setting['public_basepath'], 'api/get-domain/'),
Expand Down
4 changes: 2 additions & 2 deletions src/client/yobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@


class Yobot:
Version = "[v3.6.8]" # semver
Version_id = 225
Version = "[v3.6.9]" # semver
Version_id = 239
# "git rev-list --count HEAD"

def __init__(self, *,
Expand Down

0 comments on commit 1cdab2f

Please sign in to comment.