💄 🐛 nickname显示问题

This commit is contained in:
Chenric 2024-07-09 19:57:05 +08:00
parent 68a75a85c0
commit c1dd3a53f4
3 changed files with 3 additions and 2 deletions

View File

@ -231,6 +231,7 @@ async def handle_rank(
for i in rank:
if user_info := await get_user_info(bot, event, user_id=str(i[0])):
logger.debug(user_info)
user_nickname = user_info.user_displayname\
if user_info.user_displayname\
else user_info.user_name\

View File

@ -19,7 +19,7 @@
<div class="rank_card">
<img class="profile" src="{{ cache_path }}/{{ i.user_id }}.jpg"/>
<div class="rank_card_info">
<h1>第{{ i.user_index }}名:{{ i.user_name }}</h1>
<h1>第{{ i.user_index }}名:{{ i.user_nickname }}</h1>
<div class="g-container">
<div class="g-progress" style="width: {{ i.user_proportion }}%"></div>
</div>

View File

@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-dialectlist"
version = "2.1.6"
version = "2.1.7"
description = "看看你群群友有多能说"
authors = [
{name = "Chen_Xu233", email = "woyerpa@outlook.com"},