From c614ff3eb194bf993f6403fba20fd04c93075dc5 Mon Sep 17 00:00:00 2001 From: spla Date: Sun, 16 Jan 2022 17:09:38 +0100 Subject: [PATCH] Fix typo --- spamcheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spamcheck.py b/spamcheck.py index b055b65..4d8cb73 100644 --- a/spamcheck.py +++ b/spamcheck.py @@ -195,7 +195,7 @@ if __name__ == '__main__': ############################################################################### - insert_sql = 'INSERT INTO spamcheck(created_at, id, email, ip, text: tor_exit_node) VALUES(%s,%s,%s,%s,%s,%s) ON CONFLICT DO NOTHING' + insert_sql = 'INSERT INTO spamcheck(created_at, id, email, ip, text, tor_exit_node) VALUES(%s,%s,%s,%s,%s,%s) ON CONFLICT DO NOTHING' i = 0 @@ -215,7 +215,7 @@ if __name__ == '__main__': cur = conn.cursor() - cur.execute(insert_sql, (created_at_lst[i], id_lst[i], email_lst[i], ip_lst[i], text_lst[i]), tor_exit_node) + cur.execute(insert_sql, (created_at_lst[i], id_lst[i], email_lst[i], ip_lst[i], text_lst[i], tor_exit_node)) conn.commit() @@ -231,7 +231,7 @@ if __name__ == '__main__': conn.close() - print(created_at_lst[i], id_lst[i], email_lst[i], ip_lst[i], text_lst[i]) + print(created_at_lst[i], id_lst[i], email_lst[i], ip_lst[i], text_lst[i], tor_exit_node) i = i + 1