Skip to content

Commit c66ee28

Browse files
committed
chore: comment out GeminiPipeline import — inactive but preserved
gemini_scoring.py remains intact. Reactivate by uncommenting two lines: 1. The import in pipelines.py 2. The GeminiPipeline entry in settings.py ITEM_PIPELINES
1 parent 7178a4c commit c66ee28

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scoutbot/pipelines.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
1. DedupePipeline (100) — drops items whose link is already in the sheet
55
2. SheetsPipeline (200) — writes to Nigeria or International tab
66
7+
GeminiPipeline (150) is implemented in gemini_scoring.py and commented out
8+
in ITEM_PIPELINES (settings.py). See that file for the full rationale.
9+
To reactivate: uncomment GeminiPipeline in settings.py and add GEMINI_API_KEY secret.
10+
711
Sheet columns (5 total):
812
Title | Category | Application Link | Deadline | Date Added
913
"""
@@ -15,6 +19,10 @@
1519
from dotenv import load_dotenv
1620
from scrapy.exceptions import DropItem
1721

22+
# GeminiPipeline — preserved in gemini_scoring.py, currently inactive.
23+
# Uncomment the line below and the matching entry in settings.py to reactivate.
24+
# from scoutbot.gemini_scoring import GeminiPipeline # noqa: F401
25+
1826
load_dotenv()
1927

2028
logger = logging.getLogger(__name__)
@@ -71,7 +79,6 @@ def _ensure_tab(spreadsheet, name):
7179
if existing[:len(SHEET_HEADERS)] == SHEET_HEADERS:
7280
return ws
7381

74-
# Headers mismatch — update header row only (preserve data rows)
7582
ws.update("A1", [SHEET_HEADERS])
7683
logger.info("SheetsPipeline: Updated headers on tab '%s'.", name)
7784
return ws

0 commit comments

Comments
 (0)