chore: format
This commit is contained in:
1 parent
f71e9570c0
commit
5c62cc0517
99 files changed
+12026
-5908
No files matched your search
@@ -1559,9 +1559,7 @@ async def search_chats(
|
||||
start = max(0, idx - 50)
|
||||
end = min(len(content), idx + len(needle) + 100)
|
||||
snippet = (
|
||||
('...' if start > 0 else '')
|
||||
+ content[start:end]
|
||||
+ ('...' if end < len(content) else '')
|
||||
('...' if start > 0 else '') + content[start:end] + ('...' if end < len(content) else '')
|
||||
)
|
||||
break
|
||||
if snippet:
|
||||
|
||||
Reference in new issue
Block a user