mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Set some default values to None
This commit is contained in:
parent
8f72e9b6e7
commit
54dc1df12d
@ -38,7 +38,7 @@ AIX = sys.platform.startswith("aix")
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
def set_global_variable(
|
def set_global_variable(
|
||||||
variable_name: str = "",
|
variable_name: str = "",
|
||||||
value
|
value = None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Sets the value of a global variable in the 'GLOBAL_VARIABLES' dictionary.
|
Sets the value of a global variable in the 'GLOBAL_VARIABLES' dictionary.
|
||||||
|
@ -31,7 +31,7 @@ def set_error_level(
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
def set_summary_value(
|
def set_summary_value(
|
||||||
key: str = "",
|
key: str = "",
|
||||||
value = ""
|
value = None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Sets a fixed value for a key in the 'SUMMARY' dictionary.
|
Sets a fixed value for a key in the 'SUMMARY' dictionary.
|
||||||
@ -49,7 +49,7 @@ def set_summary_value(
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
def add_summary_value(
|
def add_summary_value(
|
||||||
key: str = "",
|
key: str = "",
|
||||||
value = ""
|
value = None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Adds a value to a key in the 'SUMMARY' dictionary.
|
Adds a value to a key in the 'SUMMARY' dictionary.
|
||||||
|
@ -30,7 +30,7 @@ def debug_dict(
|
|||||||
def set_dict_key_value(
|
def set_dict_key_value(
|
||||||
input_dict: dict = {},
|
input_dict: dict = {},
|
||||||
input_key: str = "",
|
input_key: str = "",
|
||||||
input_value
|
input_value = None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Assign to a key in a dict a given value
|
Assign to a key in a dict a given value
|
||||||
|
@ -27,7 +27,7 @@ GLOBAL_VARIABLES = {
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
def set_global_variable(
|
def set_global_variable(
|
||||||
variable_name: str = "",
|
variable_name: str = "",
|
||||||
value
|
value = None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Sets the value of a global variable in the 'GLOBAL_VARIABLES' dictionary.
|
Sets the value of a global variable in the 'GLOBAL_VARIABLES' dictionary.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user