diff --git a/.github/workflows/test-on-rpi.yml b/.github/workflows/test-on-rpi.yml index 5e3f0145..1dffda57 100644 --- a/.github/workflows/test-on-rpi.yml +++ b/.github/workflows/test-on-rpi.yml @@ -41,6 +41,7 @@ jobs: echo $HOME whoami cd /home/inky + sudo apt update sudo apt-get update -y sudo apt-get install git zlib1g libjpeg-dev libatlas-base-dev rustc libopenjp2-7 python3-dev scons libssl-dev python3-venv python3-pip git libfreetype6-dev wkhtmltopdf libopenblas-dev -y echo $PWD && ls diff --git a/.github/workflows/update-os.yml b/.github/workflows/update-os.yml index 9641a761..f298e710 100644 --- a/.github/workflows/update-os.yml +++ b/.github/workflows/update-os.yml @@ -37,6 +37,7 @@ jobs: # get kernel info uname -srm cd /home/inky + sudo apt update sudo apt-get update -y # sudo apt-get dist-upgrade -y diff --git a/inkycal/modules/inkycal_feeds.py b/inkycal/modules/inkycal_feeds.py index 38a62949..99f18542 100644 --- a/inkycal/modules/inkycal_feeds.py +++ b/inkycal/modules/inkycal_feeds.py @@ -114,7 +114,7 @@ def generate_image(self): # if "description" in posts: if parsed_feeds: - parsed_feeds = [i.split("\n") for i in parsed_feeds][0] + parsed_feeds = [i.split("\n") for i in parsed_feeds] parsed_feeds = [i for i in parsed_feeds if i] # Shuffle the list to prevent showing the same content @@ -129,7 +129,7 @@ def generate_image(self): filtered_feeds, counter = [], 0 for posts in parsed_feeds: - wrapped = text_wrap(posts, font=self.font, max_width=line_width) + wrapped = text_wrap(posts[0], font=self.font, max_width=line_width) counter += len(wrapped) if counter < max_lines: filtered_feeds.append(wrapped)