修复签到,断签天数显示问题。
This commit is contained in:
@@ -257,8 +257,8 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
last_sign_date = pytz.timezone(self.timezone).localize(last_sign_date)
|
||||
self.LOG.info(
|
||||
f"last_sign_date: {last_sign_date}, yesterday: {yesterday}, user_streak: {user_record['signin_streak']}")
|
||||
old_streak = streak
|
||||
streak = user_record['signin_streak'] + 1
|
||||
old_streak = streak
|
||||
if last_sign_date == yesterday:
|
||||
streak_broken = False
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user