mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP
This commit is contained in:
parent
b3cca1d851
commit
988670cdbf
@ -106,7 +106,7 @@ def str2bool(text, test=True):
|
||||
if test:
|
||||
return str(text).lower() in ['1', 'y', 'yes', 't', 'true', 'ok', 'on', ]
|
||||
else:
|
||||
return str(text).lower() in ['0', 'n', 'no', 'none', 'f', 'false', 'off',]
|
||||
return str(text).lower() in ['0', 'n', 'no', 'none', 'f', 'false', 'off', ]
|
||||
|
||||
|
||||
def WrapWithQuotes(text, quote='"'):
|
||||
|
Loading…
Reference in New Issue
Block a user