🐛 Fix import action log index error

This commit is contained in:
xtaodada 2024-12-18 00:04:49 +08:00
parent ea42588b10
commit 63d7a5d6b5
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -45,6 +45,8 @@ class ActionLogSystem(Plugin):
return False
if data[0].status == 1:
data.pop(0)
if not data:
return False
if data[-1].status == 0:
data.pop(-1)
return await self.action_log_service.add(data)