diff --git a/webapp_utils.py b/webapp_utils.py index 46d332a73..a61ba4222 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -484,9 +484,11 @@ def getImageFile(baseDir: str, name: str, directory: str, bannerFile = '' bannerFilename = '' for ext in bannerExtensions: - bannerFile = name + '_' + theme + '.' + ext + bannerFile = name + '.' + ext bannerFilename = directory + '/' + bannerFile if os.path.isfile(bannerFilename): + bannerFile = name + '_' + theme + '.' + ext + bannerFilename = directory + '/' + bannerFile break return bannerFile, bannerFilename