refactor(chat_manager.py): add comment to clarify iteration direction in get_file_responses method
This commit is contained in:
parent
9f8b474a36
commit
d3b72f3958
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ class ChatManager:
|
|||
history = self.chat_history.get_history(client_id, filter=False)
|
||||
file_responses = []
|
||||
if history:
|
||||
for msg in history:
|
||||
# Iterate backwards through the history
|
||||
for msg in reversed(history):
|
||||
if isinstance(msg, FileResponse):
|
||||
file_responses.append(msg)
|
||||
if msg.type == "start":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue