AMead10 commited on
Commit
429a28c
·
1 Parent(s): 7cb54ea

get id instead of list

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def save_data(orig_user_email, constituent_email, labels, user_response):
113
 
114
  db_cursor.execute(
115
  "INSERT INTO radmap_frog12.message_category_associations (message_id, message_category_id) VALUES (%i, %i)",
116
- (message_id, label_exists[0][0]),
117
  )
118
 
119
  db_connection.commit()
 
113
 
114
  db_cursor.execute(
115
  "INSERT INTO radmap_frog12.message_category_associations (message_id, message_category_id) VALUES (%i, %i)",
116
+ (message_id[0][0], label_exists[0][0]),
117
  )
118
 
119
  db_connection.commit()