Make cmm q -a "test" completely work, similar as before, tests are not fixed yet.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user