nonebot-plugin-acgnshow 0.2__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/PKG-INFO +1 -1
  2. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/acgnapis.py +2 -1
  3. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/css/style.css +1 -1
  4. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/details.html +20 -8
  5. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/template.html +1 -1
  6. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/pyproject.toml +1 -1
  7. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/LICENSE +0 -0
  8. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/README.md +0 -0
  9. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/__init__.py +0 -0
  10. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/acgnshower.py +0 -0
  11. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/config.py +0 -0
  12. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/models.py +0 -0
  13. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/SourceHanSans.otf +0 -0
  14. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg1.webp +0 -0
  15. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg2.webp +0 -0
  16. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg3.webp +0 -0
  17. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg4.webp +0 -0
  18. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg5.webp +0 -0
  19. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg6.webp +0 -0
  20. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/bgimage/bg7.webp +0 -0
  21. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/svg/no.svg +0 -0
  22. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/res/svg/yes.svg +0 -0
  23. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/nonebot_plugin_acgnshow/util.py +0 -0
  24. {nonebot_plugin_acgnshow-0.2 → nonebot_plugin_acgnshow-0.2.2}/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nonebot-plugin-acgnshow
3
- Version: 0.2
3
+ Version: 0.2.2
4
4
  Summary: Nonebot2插件,从哔哩哔哩会员购获取简易展览数据
5
5
  Author-Email: Asankilp <asankilp@outlook.com>
6
6
  License: MIT
@@ -101,7 +101,8 @@ def process_show_details_data_to_template(show_details_data: dict):
101
101
  "price": ticket.get("price", 0),
102
102
  "sale_start": convert_timestamp(ticket.get("saleStart", 0)),
103
103
  "sale_end": convert_timestamp(ticket.get("saleEnd", 0)),
104
- "status": ticket.get("sale_flag", {}).get("display_name", "")
104
+ "status": ticket.get("sale_flag", {}).get("display_name", ""),
105
+ "screen_name": ticket.get("screen_name")
105
106
  })
106
107
  guests_list = data["guests"]
107
108
  if guests_list != None:
@@ -1,6 +1,6 @@
1
1
  @font-face {
2
2
  font-family: "Source Han Sans";
3
- src: url("SourceHanSans.otf") format("opentype");
3
+ src: url("../SourceHanSans.otf") format("opentype");
4
4
  }
5
5
 
6
6
  body {
@@ -3,7 +3,7 @@
3
3
 
4
4
  <head>
5
5
  <meta charset="UTF-8" />
6
- <title>展览信息</title>
6
+ <title>Show Details</title>
7
7
  <link rel="stylesheet" href="./css/style.css" />
8
8
  <style>
9
9
  body {
@@ -15,7 +15,7 @@
15
15
  <body>
16
16
  <div class="background"></div>
17
17
  <div class="container">
18
- <div class="header">展览信息</div>
18
+ <div class="header">展览详情</div>
19
19
 
20
20
  <!-- Banner 图 -->
21
21
  <div class="banner">
@@ -26,10 +26,13 @@
26
26
  <div class="detail_content">
27
27
  <div class="details">
28
28
  <div class="title">{{ show.name }}</div>
29
- <div class="venue_name">地点:{{ show.venue_name }} {{show.venue_detail}}</div>
29
+ <div class="venue_name">地点:{{ show.venue_name }} {{ show.venue_detail }}</div>
30
30
  <div class="start-time">开始时间:{{ show.start_time }}</div>
31
31
  <div class="end-time">结束时间:{{ show.end_time }}</div>
32
32
  <div class="organizer">主办方:{{ show.organizer }}</div>
33
+ {% if show.guests %}
34
+ <div class="guests">嘉宾:{{ show.guests }}</div>
35
+ {% endif %}
33
36
  <div class="status">
34
37
  {% macro icon(name) %}
35
38
  <img src="./svg/{{ name }}.svg" class="vector_icon" width="8px" height="8px">
@@ -40,18 +43,27 @@
40
43
  {% if show.id_bind == 1 %}
41
44
  {{ icon('yes') }} 实名制
42
45
  {% endif %}
43
- {% if show.has_eticket == True %}
46
+ {% if show.has_eticket %}
44
47
  {{ icon('yes') }} 电子票/兑换票
45
48
  {% endif %}
46
49
  </div>
47
50
  <div class="placeholder"></div>
48
51
  </div>
49
52
  </div>
50
- <div class="details">
51
- {% for ticket in show.ticket_info %}
52
- <div class="ticket_box">{{ ticket.description }} {{ ticket.sale_start }} -- {{ ticket.sale_end }} ¥{{ ticket.price / 100 }} ({{ ticket.status }})</div>
53
- {% endfor %}
53
+
54
+ <!-- 按 screen_name 分组的票务信息 -->
55
+ {% for screen_name, tickets in show.ticket_info | groupby('screen_name') %}
56
+ <div class="screen_name_group">
57
+ <h3>{{ screen_name }}</h3>
58
+ <div class="details">
59
+ {% for ticket in tickets %}
60
+ <div class="ticket_box">
61
+ {{ ticket.description }} {{ ticket.sale_start }} -- {{ ticket.sale_end }} ¥{{ ticket.price / 100 }} ({{ ticket.status }})
62
+ </div>
63
+ {% endfor %}
64
+ </div>
54
65
  </div>
66
+ {% endfor %}
55
67
 
56
68
  <!-- 页脚 -->
57
69
  <div class="footer">
@@ -14,7 +14,7 @@
14
14
 
15
15
  <body>
16
16
  <div class="container">
17
- <div class="header">展览信息</div>
17
+ <div class="header">展览列表</div>
18
18
  {% for show in shows %}
19
19
  <div class="content">
20
20
  <div class="image">
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-acgnshow"
3
- version = "0.2"
3
+ version = "0.2.2"
4
4
  description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
5
5
  readme = "README.md"
6
6
  requires-python = "<4.0,>=3.9"