Style fixes

This commit is contained in:
Oliver Walters 2021-01-18 20:21:19 +11:00
parent 3ae4125df3
commit f7079c3bc2

View File

@ -20,11 +20,13 @@ from datetime import datetime
import yaml import yaml
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
def _is_true(x): def _is_true(x):
# Shortcut function to determine if a value "looks" like a boolean # Shortcut function to determine if a value "looks" like a boolean
return str(x).lower() in ['1', 'y', 'yes', 't', 'true'] return str(x).lower() in ['1', 'y', 'yes', 't', 'true']
def get_setting(environment_var, backup_val, default_value = None):
def get_setting(environment_var, backup_val, default_value=None):
""" """
Helper function for retrieving a configuration setting value Helper function for retrieving a configuration setting value