Yuvrajspd09 commited on
Commit
5879f9e
·
verified ·
1 Parent(s): 6b84ea4

Update vocca_ai/db_handler.py

Browse files
Files changed (1) hide show
  1. vocca_ai/db_handler.py +2 -2
vocca_ai/db_handler.py CHANGED
@@ -1,10 +1,10 @@
1
  import sqlite3
2
 
3
- # Allow database access from multiple threads
4
  conn = sqlite3.connect("call_logs.db", check_same_thread=False)
5
  c = conn.cursor()
6
 
7
- # Create Table for Logging Calls
8
  c.execute('''CREATE TABLE IF NOT EXISTS call_logs
9
  (id INTEGER PRIMARY KEY, transcript TEXT, intent TEXT, priority TEXT, sentiment TEXT, ai_response TEXT)''')
10
  conn.commit()
 
1
  import sqlite3
2
 
3
+ # Allowing database access from multiple threads
4
  conn = sqlite3.connect("call_logs.db", check_same_thread=False)
5
  c = conn.cursor()
6
 
7
+ # Create Table for call logs
8
  c.execute('''CREATE TABLE IF NOT EXISTS call_logs
9
  (id INTEGER PRIMARY KEY, transcript TEXT, intent TEXT, priority TEXT, sentiment TEXT, ai_response TEXT)''')
10
  conn.commit()