From 7c7082fbc6bbaeb48aded3e2a598130a1c0b343f Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 21 Mar 2023 14:11:05 +0000 Subject: Added redirecting blog posts --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'database.py') diff --git a/database.py b/database.py index cf51922..78cf237 100755 --- a/database.py +++ b/database.py @@ -92,7 +92,7 @@ class Database: def get_thought(self, id_): with self.__connection.cursor() as cursor: cursor.execute(""" - SELECT categories.category_name, thoughts.title, thoughts.dt, thoughts.markdown_text + SELECT categories.category_name, thoughts.title, thoughts.dt, thoughts.markdown_text, thoughts.redirect FROM thoughts INNER JOIN categories ON thoughts.category_id = categories.category_id WHERE thought_id = %s;""", (id_, )) -- cgit v1.2.3