Make cmm q -a "test" completely work, similar as before, tests are not fixed yet.

This commit is contained in:
Oleksandr Kozachuk
2023-09-09 19:24:45 +02:00
parent 39b518a8a6
commit 1a47fc0a7b
4 changed files with 30 additions and 13 deletions
+1 -3
View File
@@ -201,7 +201,7 @@ class Chat:
output.append(message.to_str(source_code_only=True))
continue
output.append(message.to_str(with_tags, with_files))
output.append('\n' + ('-' * terminal_width()) + '\n')
# output.append('\n' + ('-' * terminal_width()) + '\n')
if paged:
print_paged('\n'.join(output))
else:
@@ -361,8 +361,6 @@ class ChatDB(Chat):
Add the given new messages and set the file_path to the cache directory.
Only accepts messages without a file_path.
"""
if any(m.file_path is not None for m in messages):
raise ChatError("Can't add new messages with existing file_path")
if write:
write_dir(self.cache_path,
messages,