Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -49,7 +49,7 @@ c.execute('''CREATE TABLE IF NOT EXISTS user_details
|
|
49 |
certification TEXT,
|
50 |
activity TEXT,
|
51 |
country TEXT,
|
52 |
-
data_filled BOOLEAN DEFAULT
|
53 |
FOREIGN KEY(user_id) REFERENCES users(id))''')
|
54 |
|
55 |
|
@@ -177,7 +177,7 @@ def add_user_details():
|
|
177 |
c.execute("INSERT INTO user_details (user_id, first_name, last_name, school_name, bachelors_degree, "
|
178 |
"masters_degree, certification, activity, country, data_filled) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
179 |
(user_id, first_name, last_name, school_name, bachelors_degree, masters_degree, certification,
|
180 |
-
activity, country, True))
|
181 |
conn.commit()
|
182 |
return jsonify({"message": "User details added successfully"}), 201
|
183 |
except sqlite3.IntegrityError:
|
|
|
49 |
certification TEXT,
|
50 |
activity TEXT,
|
51 |
country TEXT,
|
52 |
+
data_filled BOOLEAN DEFAULT False,
|
53 |
FOREIGN KEY(user_id) REFERENCES users(id))''')
|
54 |
|
55 |
|
|
|
177 |
c.execute("INSERT INTO user_details (user_id, first_name, last_name, school_name, bachelors_degree, "
|
178 |
"masters_degree, certification, activity, country, data_filled) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
179 |
(user_id, first_name, last_name, school_name, bachelors_degree, masters_degree, certification,
|
180 |
+
activity, country, "True"))
|
181 |
conn.commit()
|
182 |
return jsonify({"message": "User details added successfully"}), 201
|
183 |
except sqlite3.IntegrityError:
|