DmitrMakeev
commited on
Commit
•
66a3422
1
Parent(s):
a6777f3
Update app.py
Browse files
app.py
CHANGED
@@ -76,42 +76,42 @@ def init_db(db_name):
|
|
76 |
cursor = conn.cursor()
|
77 |
cursor.execute('''
|
78 |
CREATE TABLE IF NOT EXISTS contacts (
|
79 |
-
id INTEGER PRIMARY KEY,
|
80 |
-
name TEXT
|
81 |
-
phone TEXT
|
82 |
-
email TEXT
|
83 |
-
vk_id TEXT
|
84 |
-
chat_id TEXT
|
85 |
-
ws_st TEXT
|
86 |
-
ws_stop TEXT
|
87 |
-
web_st
|
88 |
-
fin_prog
|
89 |
-
b_city TEXT
|
90 |
-
b_fin TEXT
|
91 |
-
b_ban TEXT
|
92 |
-
b_ign TEXT
|
93 |
-
b_baners TEXT
|
94 |
-
b_butt TEXT
|
95 |
-
b_mess TEXT
|
96 |
-
shop_st TEXT
|
97 |
-
curator TEXT
|
98 |
-
pr1 TEXT
|
99 |
-
pr2 TEXT
|
100 |
-
pr3 TEXT
|
101 |
-
pr4 TEXT
|
102 |
-
pr5 TEXT
|
103 |
-
gc_url TEXT
|
104 |
-
key_pr TEXT
|
105 |
-
n_con TEXT
|
106 |
-
canal TEXT
|
107 |
-
data_on TEXT
|
108 |
-
data_t TEXT
|
109 |
-
utm_source TEXT
|
110 |
-
utm_medium TEXT
|
111 |
-
utm_campaign TEXT
|
112 |
-
utm_term TEXT
|
113 |
-
utm_content TEXT
|
114 |
-
gcpc TEXT
|
115 |
)
|
116 |
''')
|
117 |
conn.commit()
|
@@ -121,6 +121,8 @@ for db in DATABASES:
|
|
121 |
init_db(db)
|
122 |
|
123 |
|
|
|
|
|
124 |
template = {
|
125 |
"username": "name",
|
126 |
"phone": "phone",
|
|
|
76 |
cursor = conn.cursor()
|
77 |
cursor.execute('''
|
78 |
CREATE TABLE IF NOT EXISTS contacts (
|
79 |
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
80 |
+
name TEXT NOT NULL,
|
81 |
+
phone TEXT NOT NULL,
|
82 |
+
email TEXT NOT NULL,
|
83 |
+
vk_id TEXT,
|
84 |
+
chat_id TEXT,
|
85 |
+
ws_st TEXT,
|
86 |
+
ws_stop TEXT,
|
87 |
+
web_st INTEGER,
|
88 |
+
fin_prog INTEGER,
|
89 |
+
b_city TEXT,
|
90 |
+
b_fin TEXT,
|
91 |
+
b_ban TEXT,
|
92 |
+
b_ign TEXT,
|
93 |
+
b_baners TEXT,
|
94 |
+
b_butt TEXT,
|
95 |
+
b_mess TEXT,
|
96 |
+
shop_st TEXT,
|
97 |
+
curator TEXT,
|
98 |
+
pr1 TEXT,
|
99 |
+
pr2 TEXT,
|
100 |
+
pr3 TEXT,
|
101 |
+
pr4 TEXT,
|
102 |
+
pr5 TEXT,
|
103 |
+
gc_url TEXT,
|
104 |
+
key_pr TEXT,
|
105 |
+
n_con TEXT,
|
106 |
+
canal TEXT,
|
107 |
+
data_on TEXT,
|
108 |
+
data_t TEXT,
|
109 |
+
utm_source TEXT,
|
110 |
+
utm_medium TEXT,
|
111 |
+
utm_campaign TEXT,
|
112 |
+
utm_term TEXT,
|
113 |
+
utm_content TEXT,
|
114 |
+
gcpc TEXT
|
115 |
)
|
116 |
''')
|
117 |
conn.commit()
|
|
|
121 |
init_db(db)
|
122 |
|
123 |
|
124 |
+
|
125 |
+
|
126 |
template = {
|
127 |
"username": "name",
|
128 |
"phone": "phone",
|