Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Mar 17, 2023
1 parent 6a80209 commit 8717373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def limit_round(self):
self.history.pop(0)
self.rh.pop(0)
elif hl > self.max_rounds:
self.history = self.history[hl - self.max_rounds + 1:]
self.rh = self.rh[hl - self.max_rounds + 1:]
self.history = self.history[-self.max_rounds:]
self.rh = self.rh[-self.max_rounds:]

def save_history(self):
if not os.path.exists("outputs"):
Expand Down

0 comments on commit 8717373

Please sign in to comment.