From 816d50aac7e1b7deaa726d530cbe8015fb3913cf Mon Sep 17 00:00:00 2001 From: pseusys Date: Sun, 26 Feb 2023 12:50:04 +0100 Subject: [PATCH] bytes decoding added --- sources/manager_github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/manager_github.py b/sources/manager_github.py index 2b7c1e7..8d963f3 100644 --- a/sources/manager_github.py +++ b/sources/manager_github.py @@ -150,6 +150,6 @@ class GitHubManager: else: DBM.i("Inlining chart...") - chart_path = f"data:image/png;base64,{b64encode(data)}" + chart_path = f"data:image/png;base64,{b64encode(data).decode('utf-8')}" return f"**{FM.t('Timeline')}**\n\n![Lines of Code chart]({chart_path})\n\n"