mirror of
https://github.com/ChenXu233/nonebot_plugin_dialectlist.git
synced 2025-01-31 23:41:49 +08:00
💄 🐛 nickname显示问题
This commit is contained in:
parent
68a75a85c0
commit
c1dd3a53f4
@ -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\
|
||||
|
@ -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>
|
||||
|
@ -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"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user