From 009342225c1877318f0361b4ef7c7f4589ba48ed Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 28 Mar 2021 18:25:31 +0700 Subject: [PATCH] wow you can't even have a backslash in an fstring --- sukuinote/slave-plugins/anilist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sukuinote/slave-plugins/anilist.py b/sukuinote/slave-plugins/anilist.py index abdee3f..eb5ab0b 100644 --- a/sukuinote/slave-plugins/anilist.py +++ b/sukuinote/slave-plugins/anilist.py @@ -163,7 +163,11 @@ async def generate_character(anilist): if title_alternative: text += f'\nSynonyms: {title_alternative}' if media: - text += f'\nFeatured In:{" " if len(media) == 1 else "\n"}' + text += '\nFeatured In:' + if len(media) == 1: + text += ' ' + else: + text += '\n' to_add = [] for i in media: atext = f'{i["title"]["romaji"]}'