mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2025-01-09 23:04:29 +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
|
return False
|
||||||
if data[0].status == 1:
|
if data[0].status == 1:
|
||||||
data.pop(0)
|
data.pop(0)
|
||||||
|
if not data:
|
||||||
|
return False
|
||||||
if data[-1].status == 0:
|
if data[-1].status == 0:
|
||||||
data.pop(-1)
|
data.pop(-1)
|
||||||
return await self.action_log_service.add(data)
|
return await self.action_log_service.add(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user