From fec1189d271bae4a341f60c4d8e3e20505f5f034 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 3 Jan 2022 21:21:00 +0000 Subject: [PATCH] Snake case --- webapp_about.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/webapp_about.py b/webapp_about.py index ae8a87d31..e410a33eb 100644 --- a/webapp_about.py +++ b/webapp_about.py @@ -30,36 +30,36 @@ def html_about(css_cache: {}, base_dir: str, http_prefix: str, copyfile(base_dir + '/accounts/login-background-custom.jpg', base_dir + '/accounts/login-background.jpg') - aboutText = 'Information about this instance goes here.' + about_text = 'Information about this instance goes here.' if os.path.isfile(base_dir + '/accounts/about.md'): - with open(base_dir + '/accounts/about.md', 'r') as aboutFile: - aboutText = markdown_to_html(aboutFile.read()) + with open(base_dir + '/accounts/about.md', 'r') as fp_about: + about_text = markdown_to_html(fp_about.read()) - aboutForm = '' + about_form = '' css_filename = base_dir + '/epicyon-profile.css' if os.path.isfile(base_dir + '/epicyon.css'): css_filename = base_dir + '/epicyon.css' - instanceTitle = \ + instance_title = \ get_config_param(base_dir, 'instanceTitle') - aboutForm = \ - html_header_with_website_markup(css_filename, instanceTitle, + about_form = \ + html_header_with_website_markup(css_filename, instance_title, http_prefix, domain_full, system_language) - aboutForm += '
' + aboutText + '
' + about_form += '
' + about_text + '
' if onion_domain: - aboutForm += \ + about_form += \ '
\n' + \ '

' + \ 'http://' + onion_domain + '

\n
\n' if admin_nickname: - adminActor = '/users/' + admin_nickname - aboutForm += \ + admin_actor = '/users/' + admin_nickname + about_form += \ '
\n' + \ '

' + \ translate['Administered by'] + ' ' + admin_nickname + '. ' + \ + admin_actor + '">' + admin_nickname + '. ' + \ translate['Version'] + ' ' + __version__ + \ '

\n
\n' - aboutForm += html_footer() - return aboutForm + about_form += html_footer() + return about_form