From 862526819d0cbc2c022a928a04300ef013a47025 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Dec 2020 17:47:34 +0000 Subject: [PATCH] Test first --- webapp_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index a61ba4222..becc19f72 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -484,9 +484,9 @@ def getImageFile(baseDir: str, name: str, directory: str, bannerFile = '' bannerFilename = '' for ext in bannerExtensions: - bannerFile = name + '.' + ext - bannerFilename = directory + '/' + bannerFile - if os.path.isfile(bannerFilename): + bannerFileTest = name + '.' + ext + bannerFilenameTest = directory + '/' + bannerFileTest + if os.path.isfile(bannerFilenameTest): bannerFile = name + '_' + theme + '.' + ext bannerFilename = directory + '/' + bannerFile break