Skip to content

[Bug]: _parse() and _parse_wellfound() defined twice in scout.py — LLM logic silently overwritten #121

Description

@MaheshAspirant

Summary

Two functions in automation/scout.py are each defined twice in the same file.
The second definitions overwrite the first ones at module load time, making the
original LLM-based extraction logic permanently unreachable dead code.

Steps to reproduce

  1. Open backend/automation/scout.py
  2. Search for def _parse — two definitions appear
  3. Search for def _parse_wellfound — two definitions appear
  4. Run: python -m pyflakes automation/scout.py
    Output confirms: "redefinition of unused '_parse' from line 288"

Expected behavior

Each function should be defined exactly once. The intended implementation
(either the LLM logic or the web_sources wrapper) should be the only definition present.

OS / app version

Discovered via static analysis (pyflakes) — not OS-specific

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions