👽 Update zzz stat and note models

This commit is contained in:
xtaodada 2024-11-08 22:51:00 +08:00
parent 22ee6cbf57
commit 6dcc187892
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 15 additions and 3 deletions

View File

@ -57,11 +57,12 @@ class DailyNotePlugin(Plugin):
"card_sign_status": daily_info.card_sign == ZZZNoteCardSignState.DONE,
"bounty_commission": daily_info.bounty_commission,
"survey_points": daily_info.survey_points,
"weekly_task": daily_info.weekly_task,
}
render_result = await self.template_service.render(
"zzz/daily_note/daily_note.jinja2",
render_data,
{"width": 600, "height": 480},
{"width": 600, "height": 520},
full_page=False,
ttl=8 * 60,
)

View File

@ -75,9 +75,11 @@ class PlayerStatsPlugins(Plugin):
"stats_labels": [
("活跃天数", "active_days"),
("获取角色数", "avatar_num"),
("达成成就数", "achievement_count"),
("式舆防卫战防线", "cur_period_zone_layer_count"),
("获得邦布数", "buddy_num"),
("式舆防卫战防线", "cur_period_zone_layer_count"),
("拟真鏖战试炼", "climbing_tower_layer"),
("断层之谜", "next_hundred_layer"),
("达成成就数", "achievement_count"),
("绳网声望", "world_level_name"),
],
"cat_notes_list": user_info.cat_notes_list,

View File

@ -75,6 +75,15 @@
</span>
</div>
{% endif %}
{% if weekly_task %}
<div class="item">
<img class="icon" src="./items/Investigation-Point.png" alt="" />
<div class="name">丽都周纪</div>
<span class="detail {% if weekly_task.cur_point != weekly_task.max_point %}red{% endif %}">
{{ weekly_task.cur_point }}/{{ weekly_task.max_point }}
</span>
</div>
{% endif %}
</div>
</div>
</body>