mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-06 00:00:05 +08:00
optimize+注释
This commit is contained in:
@@ -118,11 +118,11 @@ EVENT_CARD_TEMPLATE = """\
|
||||
|
||||
def _hot_level(score: int) -> tuple[str, str, str]:
|
||||
"""返回 (label, badge_class, hot_class)"""
|
||||
if score >= 50:
|
||||
return "全网沸腾", "badge-hot", " is-hot"
|
||||
if score >= 20:
|
||||
return "高度关注", "badge-warm", ""
|
||||
if score >= 10:
|
||||
return "全网沸腾", "badge-hot", " is-hot"
|
||||
if score >= 5:
|
||||
return "高度关注", "badge-warm", ""
|
||||
if score >= 3:
|
||||
return "上升中", "badge-normal", ""
|
||||
return "一般关注", "badge-tag", ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user