From 6dcc1878926930209bb53003b3d9f32a0318ebbe Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 8 Nov 2024 22:51:00 +0800 Subject: [PATCH] :alien: Update zzz stat and note models --- plugins/zzz/daily_note.py | 3 ++- plugins/zzz/stats.py | 6 ++++-- resources/zzz/daily_note/daily_note.jinja2 | 9 +++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/plugins/zzz/daily_note.py b/plugins/zzz/daily_note.py index 8aeca94..191d100 100644 --- a/plugins/zzz/daily_note.py +++ b/plugins/zzz/daily_note.py @@ -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, ) diff --git a/plugins/zzz/stats.py b/plugins/zzz/stats.py index 94b7a25..57e006b 100644 --- a/plugins/zzz/stats.py +++ b/plugins/zzz/stats.py @@ -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, diff --git a/resources/zzz/daily_note/daily_note.jinja2 b/resources/zzz/daily_note/daily_note.jinja2 index 8ca8593..bdf4417 100644 --- a/resources/zzz/daily_note/daily_note.jinja2 +++ b/resources/zzz/daily_note/daily_note.jinja2 @@ -75,6 +75,15 @@ {% endif %} + {% if weekly_task %} +
+ +
丽都周纪
+ + {{ weekly_task.cur_point }}/{{ weekly_task.max_point }} + +
+ {% endif %}