From be2ccd7c46133d2e7d9d9df96f8abe6b1642b28a Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 27 Dec 2023 23:28:19 -0800 Subject: [PATCH] fixed uploading html/pngs in website func... agian...again --- sparkytron3000.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index ecb9512..88f0ac0 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -1068,11 +1068,11 @@ async def website(ctx): for filename in os.listdir(local_folder): if ".png" in filename: - await upload_sftp(filename, (os.getenv('ftp_public_html') + 'ai-webpage/'), filename) + await upload_sftp(filename.decode(), (os.getenv('ftp_public_html') + 'ai-webpage/'), filename.decode()) #explicitly upload html files last! for filename in os.listdir(local_folder): if ".html" in filename: - await upload_sftp(filename, (os.getenv('ftp_public_html') + 'ai-webpage/'), filename) + await upload_sftp(filename.decode(), (os.getenv('ftp_public_html') + 'ai-webpage/'), filename.decode()) server_folder = ftp_public_html + 'ai-webpage/'