diff --git a/survBot.py b/survBot.py index 4788b07..92ad301 100755 --- a/survBot.py +++ b/survBot.py @@ -537,11 +537,13 @@ class SurveillanceBot(object): # write footer with optional logo logo_file = self.parameters.get('html_logo') + logo_alt_text = self.parameters.get('logo_alt_text') + logo_height = self.parameters.get('logo_height') if not os.path.isfile(pjoin(self.outpath_html, logo_file)): logging.info(f'Specified file {logo_file} not found.') logo_file = None - outfile.write(html_footer(footer_logo=logo_file)) + outfile.write(html_footer(footer_logo=logo_file, alt_text=logo_alt_text, height=logo_height)) except Exception as e: logging.info(f'Could not write HTML table to {fnout}:') diff --git a/write_utils.py b/write_utils.py index dd2c494..040664b 100644 --- a/write_utils.py +++ b/write_utils.py @@ -48,14 +48,15 @@ def finish_html_table(): return '\n' -def html_footer(footer_logo=None): - footer = [''] +def html_footer(footer_logo=None, alt_text='Logo', height=30): if footer_logo: - logo_items = [f''] - footer += logo_items - footer.append('\n') + footer = [f''] + else: + footer = [] + footer.append('') + footer.append('') footer = _convert_to_textstring(footer) return footer