optimize+注释

This commit is contained in:
stardrophere
2026-03-13 23:48:49 +08:00
parent 6aee65af6c
commit da00ebb8f2
41 changed files with 874 additions and 174 deletions
+4 -4
View File
@@ -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", ""