Commit 757c9d0
committed
Add script to reset prospects flags and hide
Add a utility script app/api/prospects/database/reset_flag_and_hide.py that resets the `flag` and `hide` columns to FALSE for all rows in the prospects table. It obtains a DB connection from get_db_connection(), executes the UPDATE, commits on success, rolls back on exception, and ensures cursor/connection are closed. The script can be run directly as a standalone command.1 parent bdf66c8 commit 757c9d0
1 file changed
Lines changed: 20 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 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments