aboutsummaryrefslogtreecommitdiffstats
path: root/database.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-03-21 14:11:05 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2023-03-21 14:11:05 +0000
commit7c7082fbc6bbaeb48aded3e2a598130a1c0b343f (patch)
tree4ed03ccb37055cdbcc6fc2fc4ec907f66ca143a9 /database.py
parentc9c6db89a10e331d3df9f1a60b5c3ea89b1e7c59 (diff)
downloadboymoder.blog-7c7082fbc6bbaeb48aded3e2a598130a1c0b343f.tar.gz
boymoder.blog-7c7082fbc6bbaeb48aded3e2a598130a1c0b343f.zip
Added redirecting blog posts
Diffstat (limited to 'database.py')
-rwxr-xr-xdatabase.py2
1 files changed, 1 insertions, 1 deletions
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_, ))