aboutsummaryrefslogtreecommitdiff
path: root/src/db_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/db_handler.py')
-rw-r--r--src/db_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db_handler.py b/src/db_handler.py
index c52d667..c0dba76 100644
--- a/src/db_handler.py
+++ b/src/db_handler.py
@@ -19,7 +19,7 @@ class DBHandler:
'''
SELECT id, nickname, comment, page_url, visitor_url, (CASE WHEN show_contact THEN contact ELSE NULL END) as contact, created_at
FROM comment WHERE approved AND public AND page_url = ? ORDER BY created_at DESC;
- ''', (url))
+ ''', (url,))
comments = cur.fetchall()
headers = list(map(lambda attr : attr[0], cur.description))
return comments, headers