From aaa0fa613ac5c8997394ff54e4c6a4fff526e0fa Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 22 Jan 2026 13:33:36 -0600 Subject: [PATCH] Image Handling: Fix tidy cover caching when no cover. --- fanficfare/story.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 89e57ddb..cdc0c849 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -689,7 +689,10 @@ class ImageStore: # cover plus list def get_imgs(self): - return [ self.cover ] + [ x for x in self.infos if x['actuallyused'] ] + retval = [ x for x in self.infos if x['actuallyused'] ] + if self.cover: + retval.insert(0,self.cover) + return retval def debug_out(self): # logger.debug(self.fails_index)