mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
refactor: streamline file skipping logic in Dropbox indexer by removing redundant checks, improving code clarity
This commit is contained in:
parent
63a75052ca
commit
0fb92b7c56
2 changed files with 1 additions and 5 deletions
|
|
@ -337,10 +337,6 @@ async def _index_with_delta_sync(
|
|||
if tag != "file":
|
||||
continue
|
||||
|
||||
if skip_item(entry):
|
||||
skipped += 1
|
||||
continue
|
||||
|
||||
skip, msg = await _should_skip_file(session, entry, search_space_id)
|
||||
if skip:
|
||||
if msg and "renamed" in msg.lower():
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ DOCUMENT_EXTENSIONS: frozenset[str] = frozenset({
|
|||
".pdf",
|
||||
# Microsoft Office
|
||||
".docx", ".doc", ".xlsx", ".xls", ".pptx", ".ppt",
|
||||
# Images (raster -- OCR / vision parsing)
|
||||
# Images (raster: OCR / vision parsing)
|
||||
".png", ".jpg", ".jpeg", ".bmp", ".tiff", ".tif",
|
||||
# Rich text / e-book
|
||||
".rtf", ".epub",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue