Spaces:
Paused
Paused
Remove debug print statements with indentation issues
Browse files
db.py
CHANGED
|
@@ -38,12 +38,10 @@ def fetch_client_info(client_id: str):
|
|
| 38 |
def fetch_client_info_by_policy(policy_number: str):
|
| 39 |
try:
|
| 40 |
policy_number = policy_number.strip().upper() # ← clean it
|
| 41 |
-
print(f"[DB] Searching for policy_number: '{policy_number}'")
|
| 42 |
conn = psycopg2.connect(DATABASE_URL, cursor_factory=psycopg2.extras.RealDictCursor)
|
| 43 |
cur = conn.cursor()
|
| 44 |
cur.execute("SELECT * FROM insurance_clients WHERE policy_number = %s", (policy_number,))
|
| 45 |
row = cur.fetchone()
|
| 46 |
-
print(f"[DB] Query result: {row}")
|
| 47 |
cur.close()
|
| 48 |
conn.close()
|
| 49 |
if row:
|
|
|
|
| 38 |
def fetch_client_info_by_policy(policy_number: str):
|
| 39 |
try:
|
| 40 |
policy_number = policy_number.strip().upper() # ← clean it
|
|
|
|
| 41 |
conn = psycopg2.connect(DATABASE_URL, cursor_factory=psycopg2.extras.RealDictCursor)
|
| 42 |
cur = conn.cursor()
|
| 43 |
cur.execute("SELECT * FROM insurance_clients WHERE policy_number = %s", (policy_number,))
|
| 44 |
row = cur.fetchone()
|
|
|
|
| 45 |
cur.close()
|
| 46 |
conn.close()
|
| 47 |
if row:
|