From f7079c3bc2a2ad7c3415e9a447e1ab2bb14eb6a9 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 18 Jan 2021 20:21:19 +1100 Subject: [PATCH] Style fixes --- InvenTree/InvenTree/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 2e156b226d..107cc7ff16 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -20,11 +20,13 @@ from datetime import datetime import yaml from django.utils.translation import gettext_lazy as _ + def _is_true(x): # Shortcut function to determine if a value "looks" like a boolean 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