mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2025-01-09 15:02:17 +00:00
🐛 Fix import action log index error
This commit is contained in:
parent
ea42588b10
commit
63d7a5d6b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user