Commit 05e6e5b
committed
Add script to reset prospects flag and hide
Introduce a standalone maintenance script at app/api/prospects/sql/reset_flag_hide.py that runs a SQL UPDATE to set prospects.flag and prospects.hide to FALSE for all rows. The script obtains a direct DB connection via get_db_connection_direct(), executes the update, commits, and prints a confirmation. Useful for resetting prospect visibility states during maintenance or migrations.1 parent da2b964 commit 05e6e5b
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments