Skip to content

Commit

Permalink
Merge pull request jxxghp#3506 from thsrite/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Dec 9, 2024
2 parents 58b438c + 4f0eff8 commit 83f7869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/chain/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def refresh_userdata(self, site: CommentedMap = None) -> Optional[SiteUserData]:
link=site.get("url")
))
# 低分享率警告
if userdata.ratio and float(userdata.ratio) < 1:
if userdata.ratio and float(userdata.ratio) < 1 and not bool(
re.search(r"(贵宾|VIP?)", userdata.user_level, re.IGNORECASE)):
self.post_message(Notification(
mtype=NotificationType.SiteMessage,
title=f"【站点分享率低预警】",
Expand Down

0 comments on commit 83f7869

Please sign in to comment.