diff options
| author | user@node5.net <user@node5.net> | 2025-07-19 15:58:56 +0200 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2025-07-19 15:58:56 +0200 |
| commit | 800da4c7e251040ed2e6f8533b8dc24b6b83eaef (patch) | |
| tree | 6d3e050766ebd4616f38e0a4d6ceaa1c8c98c7b1 /src/db_handler.py | |
| parent | 1de5e27008b309a352f5c967dce253d956e40421 (diff) | |
No comments SQL select count
Diffstat (limited to 'src/db_handler.py')
| -rw-r--r-- | src/db_handler.py | 2 |
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 |
