hisham-cmd commited on
Commit
b772abe
·
verified ·
1 Parent(s): 8b3a157

Delete list_users.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. list_users.py +0 -22
list_users.py DELETED
@@ -1,22 +0,0 @@
1
- import sqlite3
2
- import os
3
-
4
- db_path = 'c:/react_projects/VortexCommerce/backend/vortex.db'
5
-
6
- if not os.path.exists(db_path):
7
- print(f"Database not found at {db_path}")
8
- else:
9
- conn = sqlite3.connect(db_path)
10
- cursor = conn.cursor()
11
- try:
12
- cursor.execute("SELECT * FROM users")
13
- columns = [description[0] for description in cursor.description]
14
- print(f"Columns: {columns}")
15
- rows = cursor.fetchall()
16
- print("Existing Users:")
17
- for row in rows:
18
- print(row)
19
- except Exception as e:
20
- print(f"Error: {e}")
21
- finally:
22
- conn.close()