mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Style fixes
This commit is contained in:
parent
3ae4125df3
commit
f7079c3bc2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user