We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f740b8d + 05e6e5b commit 9fba188Copy full SHA for 9fba188
2 files changed
app/__init__.py
@@ -1,4 +1,4 @@
1
"""Python - FastAPI, Postgres, tsvector"""
2
3
# Current Version
4
-__version__ = "2.1.7"
+__version__ = "2.1.8"
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
5
+
6
+if __name__ == "__main__":
7
+ sql = """
8
+ UPDATE prospects
9
+ SET flag = FALSE, hide = FALSE;
10
+ """
11
+ conn = get_db_connection_direct()
12
+ cur = conn.cursor()
13
+ cur.execute(sql)
14
+ conn.commit()
15
+ cur.close()
16
+ conn.close()
17
+ print("All prospects' flag and hide columns have been reset to FALSE.")
0 commit comments