Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,7 +207,7 @@ def get_user():
|
|
| 207 |
if not email and not vk_id:
|
| 208 |
return jsonify({"error": "Either email or vk_id must be provided"}), 400
|
| 209 |
|
| 210 |
-
conn =
|
| 211 |
cursor = conn.cursor()
|
| 212 |
|
| 213 |
query = "SELECT * FROM contacts WHERE "
|
|
|
|
| 207 |
if not email and not vk_id:
|
| 208 |
return jsonify({"error": "Either email or vk_id must be provided"}), 400
|
| 209 |
|
| 210 |
+
conn = get_db_connection_user()
|
| 211 |
cursor = conn.cursor()
|
| 212 |
|
| 213 |
query = "SELECT * FROM contacts WHERE "
|