DmitrMakeev commited on
Commit
a6777f3
1 Parent(s): 55a7982

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,8 +71,8 @@ DATABASES = ['data_gc.db', 'data1.db', 'data2.db', 'data3.db', 'data4.db', 'data
71
 
72
 
73
 
74
- def create_table():
75
- conn = sqlite3.connect(DATABASE)
76
  cursor = conn.cursor()
77
  cursor.execute('''
78
  CREATE TABLE IF NOT EXISTS contacts (
 
71
 
72
 
73
 
74
+ def init_db(db_name):
75
+ conn = sqlite3.connect(db_name)
76
  cursor = conn.cursor()
77
  cursor.execute('''
78
  CREATE TABLE IF NOT EXISTS contacts (