Skip to content

fix: run_discovery now supports searches: format created by applypilot init wizard#73

Open
mariaszelecka wants to merge 1 commit into
Pickle-Pixel:mainfrom
mariaszelecka:fix/searches-yaml-format-v2
Open

fix: run_discovery now supports searches: format created by applypilot init wizard#73
mariaszelecka wants to merge 1 commit into
Pickle-Pixel:mainfrom
mariaszelecka:fix/searches-yaml-format-v2

Conversation

@mariaszelecka

Copy link
Copy Markdown

Problem

Running applypilot init creates a searches.yaml using the searches: format
with combined search_term + location entries. However, run_discovery() in
jobspy.py only reads the legacy queries: + locations: format, resulting in
0 search combinations and 0 jobs discovered — with no error message explaining why.

This affects every user who installs v0.3.0 and runs the setup wizard.

Fix

Added a format detection check at the top of run_discovery(). If searches:
key is present, it reads entries directly using search_term + location + site_name.
Falls back to the legacy format if searches: is not present, so existing configs
still work.

Testing

Tested on Windows with Python 3.13. After fix: 168 jobs discovered across 17
search queries in Zurich, Switzerland. Before fix: 0 jobs discovered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant