fix 无法关闭和删除提醒的bug

有关的issues #136
This commit is contained in:
HUYO-OS 2022-08-01 20:30:22 +08:00 committed by GitHub
parent 6bd3013533
commit 611481e227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,11 +254,11 @@ async def ssbq_handler(event: MessageEvent, msg: Message = CommandArg()):
await update_note_remind2(user_id, uid, gid, 1) await update_note_remind2(user_id, uid, gid, 1)
await ssbq.finish('开启提醒成功', at_sender=True) await ssbq.finish('开启提醒成功', at_sender=True)
elif find_remind_enable.group('action') == '关闭提醒': elif find_remind_enable.group('action') == '关闭提醒':
await ssbq.finish('关闭提醒成功', at_sender=True)
await update_note_remind2(user_id, uid, gid, 0) await update_note_remind2(user_id, uid, gid, 0)
await ssbq.finish('关闭提醒成功', at_sender=True)
elif find_remind_enable.group('action') == '删除提醒': elif find_remind_enable.group('action') == '删除提醒':
await ssbq.finish('删除提醒成功', at_sender=True)
await delete_note_remind(user_id, uid) await delete_note_remind(user_id, uid)
await ssbq.finish('删除提醒成功', at_sender=True)
else: else:
data = await get_daily_note_data(uid) data = await get_daily_note_data(uid)
if isinstance(data, str): if isinstance(data, str):