From 185e7fd4bf5a278a6ec6a4e04639dd8952587649 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 11 Nov 2024 16:57:18 +1100 Subject: [PATCH] thrimshim: Read template attribution, not description --- thrimshim/thrimshim/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index f57eb6f..c63f1e9 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -385,11 +385,11 @@ def update_row(ident, editor=None): description_lines.append('') # blank line before footer if new_row['thumbnail_mode'] == 'TEMPLATE' and new_row['thumbnail_template']: results = database.query(conn, """ - SELECT description FROM templates WHERE name = %s + SELECT attribution FROM templates WHERE name = %s """, new_row['thumbnail_template']) template = results.fetchone() - if template and template.description: - description_lines += [DESCRIPTION_THUMBNAIL_HEADER + template.description] + if template and template.attribution: + description_lines += [DESCRIPTION_THUMBNAIL_HEADER + template.attribution] description_lines.append(app.description_footer) new_row['video_description'] += "\n\n" + "\n".join(description_lines)