update col name
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def save_data(orig_user_email, constituent_email, labels, user_response, current
|
|
107 |
message_id = 0
|
108 |
if orig_user_email != "":
|
109 |
db_cursor.execute(
|
110 |
-
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type,
|
111 |
(ORG_ID, person_id, orig_user_email, message_id),
|
112 |
)
|
113 |
|
@@ -115,14 +115,14 @@ def save_data(orig_user_email, constituent_email, labels, user_response, current
|
|
115 |
message_id = db_cursor.lastrowid
|
116 |
|
117 |
db_cursor.execute(
|
118 |
-
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type,
|
119 |
(ORG_ID, constituent_email, message_id),
|
120 |
)
|
121 |
|
122 |
message_id = db_cursor.lastrowid
|
123 |
|
124 |
db_cursor.execute(
|
125 |
-
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type,
|
126 |
(ORG_ID, person_id, user_response, message_id),
|
127 |
)
|
128 |
|
|
|
107 |
message_id = 0
|
108 |
if orig_user_email != "":
|
109 |
db_cursor.execute(
|
110 |
+
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type, previous_message_id) VALUES (345678, %s, %s, 1, 1, 'Email Classification and Response Tracking', %s, NOW(), 'Email Classification and Response Tracking', %s)",
|
111 |
(ORG_ID, person_id, orig_user_email, message_id),
|
112 |
)
|
113 |
|
|
|
115 |
message_id = db_cursor.lastrowid
|
116 |
|
117 |
db_cursor.execute(
|
118 |
+
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type, previous_message_id) VALUES (345678, %s, 0, 1, 1, 'Email Classification and Response Tracking', %s, NOW(), 'Email Classification and Response Tracking', %s)",
|
119 |
(ORG_ID, constituent_email, message_id),
|
120 |
)
|
121 |
|
122 |
message_id = db_cursor.lastrowid
|
123 |
|
124 |
db_cursor.execute(
|
125 |
+
"INSERT INTO radmap_frog12.messages (app_id, org_id, person_id, communication_method_id, status_id, subject, body, send_date, message_type, previous_message_id) VALUES (345678, %s, %s, 1, 1, 'Email Classification and Response Tracking', %s, NOW(), 'Email Classification and Response Tracking', %s)",
|
126 |
(ORG_ID, person_id, user_response, message_id),
|
127 |
)
|
128 |
|