mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
chore: ran linting
This commit is contained in:
parent
bc1f31b481
commit
ac0f2fa2eb
33 changed files with 688 additions and 661 deletions
|
|
@ -37,9 +37,7 @@ async def safe_set_chunks(
|
|||
from app.db import Chunk
|
||||
|
||||
if document.id is not None:
|
||||
await session.execute(
|
||||
delete(Chunk).where(Chunk.document_id == document.id)
|
||||
)
|
||||
await session.execute(delete(Chunk).where(Chunk.document_id == document.id))
|
||||
for chunk in chunks:
|
||||
chunk.document_id = document.id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue