diff --git a/app/__init__.py b/app/__init__.py index 08a9ea4..7dd6553 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,4 @@ """Python - FastAPI, Postgres, tsvector""" # Current Version -__version__ = "2.1.7" +__version__ = "2.1.8" diff --git a/app/api/prospects/sql/reset_flag_hide.py b/app/api/prospects/sql/reset_flag_hide.py new file mode 100644 index 0000000..ef58c49 --- /dev/null +++ b/app/api/prospects/sql/reset_flag_hide.py @@ -0,0 +1,17 @@ +import os +import sys +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../..'))) +from app.utils.db import get_db_connection_direct + +if __name__ == "__main__": + sql = """ + UPDATE prospects + SET flag = FALSE, hide = FALSE; + """ + conn = get_db_connection_direct() + cur = conn.cursor() + cur.execute(sql) + conn.commit() + cur.close() + conn.close() + print("All prospects' flag and hide columns have been reset to FALSE.")