Skip to content

Add script to keep 8 random prospects#75

Merged
goldlabelapps merged 1 commit into
masterfrom
staging
Apr 9, 2026
Merged

Add script to keep 8 random prospects#75
goldlabelapps merged 1 commit into
masterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

Introduce a maintenance script (app/api/prospects/sql/keep_random_8_prospects.py) that selects 8 random prospect IDs, prints them, then deletes all other prospect records and associated llm rows using a direct DB connection from app.utils.db.get_db_connection_direct. The script modifies sys.path to locate the app package and commits the destructive changes; intended for one-off cleanup/maintenance.

Introduce a maintenance script (app/api/prospects/sql/keep_random_8_prospects.py) that selects 8 random prospect IDs, prints them, then deletes all other prospect records and associated llm rows using a direct DB connection from app.utils.db.get_db_connection_direct. The script modifies sys.path to locate the app package and commits the destructive changes; intended for one-off cleanup/maintenance.
@goldlabelapps goldlabelapps merged commit fab0b3b into master Apr 9, 2026
1 check passed
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