From 4f0eff8b88cd41fae127280fb64e3912d4c6518d Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 9 Dec 2024 16:43:05 +0800 Subject: [PATCH] fix site vip level ignores ratio warning --- app/chain/site.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/chain/site.py b/app/chain/site.py index 7c7626311..92379dc88 100644 --- a/app/chain/site.py +++ b/app/chain/site.py @@ -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"【站点分享率低预警】",