Swapnil-101 commited on
Commit
240c27b
·
verified ·
1 Parent(s): 4e5f17c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 0,
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: