thrimshim: Read template attribution, not description

chrusher/bus_synthesizer
Mike Lang 2 weeks ago
parent b5d084305b
commit 185e7fd4bf

@ -385,11 +385,11 @@ def update_row(ident, editor=None):
description_lines.append('') # blank line before footer description_lines.append('') # blank line before footer
if new_row['thumbnail_mode'] == 'TEMPLATE' and new_row['thumbnail_template']: if new_row['thumbnail_mode'] == 'TEMPLATE' and new_row['thumbnail_template']:
results = database.query(conn, """ results = database.query(conn, """
SELECT description FROM templates WHERE name = %s SELECT attribution FROM templates WHERE name = %s
""", new_row['thumbnail_template']) """, new_row['thumbnail_template'])
template = results.fetchone() template = results.fetchone()
if template and template.description: if template and template.attribution:
description_lines += [DESCRIPTION_THUMBNAIL_HEADER + template.description] description_lines += [DESCRIPTION_THUMBNAIL_HEADER + template.attribution]
description_lines.append(app.description_footer) description_lines.append(app.description_footer)
new_row['video_description'] += "\n\n" + "\n".join(description_lines) new_row['video_description'] += "\n\n" + "\n".join(description_lines)

Loading…
Cancel
Save