提交 8d22f370 编辑于 作者: yuudi's avatar yuudi
浏览文件

fix: user page error when coolq not cached new group

上级 5eaf4df7
{
"stable": {
"version": 3493,
"url": "http://img.yobot.xyz/yobot/yobot3493.zip"
"version": 3495,
"url": "http://img.yobot.xyz/yobot/yobot3495.zip"
}
}
\ No newline at end of file
......@@ -419,8 +419,10 @@ class Login:
return await render_template(
'user.html',
user=User.get_by_id(session['yobot_user']),
clan_groups=[{'group_id': g.group_id, 'group_name': g.info.group_name}
for g in clan_groups],
clan_groups=[{
'group_id': g.group_id,
'group_name': (getattr(getattr(g, 'info', None), 'group_name', None) or g.group_id)
} for g in clan_groups],
)
@app.route(
......
......@@ -33,8 +33,8 @@ else:
class Yobot:
Version = "[v3.6.3-beta.3]"
Version_id = 194
Version = "[v3.6.3-beta.4]"
Version_id = 195
# "git rev-list --count HEAD"
def __init__(self, *,
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册