Skip to content

Commit

Permalink
🐛 Fix import action log index error
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Dec 17, 2024
1 parent e17f631 commit ee391d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/tools/action_log_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ async def import_action_log(self, client: "StarRailClient", authkey: str, is_laz
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)
Expand Down

0 comments on commit ee391d5

Please sign in to comment.