Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def should_process_file(file_path: str, use_inclusion: bool, included_dirs: List
# Check if file is in an included directory
if included_dirs:
for included in included_dirs:
clean_included = included.strip("./").rstrip("/")
clean_included = included.split("./")[1].rstrip("/")
if clean_included in file_path_parts:
is_included = True
break
Expand Down Expand Up @@ -278,7 +278,7 @@ def should_process_file(file_path: str, use_inclusion: bool, included_dirs: List

# Check if file is in an excluded directory
for excluded in excluded_dirs:
clean_excluded = excluded.strip("./").rstrip("/")
clean_excluded = excluded.split("./")[1].rstrip("/")
if clean_excluded in file_path_parts:
is_excluded = True
break
Expand Down