MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / add_value

Function add_value

web/pgadmin/utils/__init__.py:464–478  ·  view source on GitHub ↗

Add a value to the attribute dict if non-empty. Args: attr_dict (dict): The dictionary to add the values to key (str): The key for the new value value (str): The value to add Returns: The updated attribute dictionary

(attr_dict, key, value)

Source from the content-addressed store, hash-verified

462
463
464def add_value(attr_dict, key, value):
465 """Add a value to the attribute dict if non-empty.
466
467 Args:
468 attr_dict (dict): The dictionary to add the values to
469 key (str): The key for the new value
470 value (str): The value to add
471
472 Returns:
473 The updated attribute dictionary
474 """
475 if value != "" and value is not None:
476 attr_dict[key] = value
477
478 return attr_dict
479
480
481def dump_database_servers(output_file, selected_servers,

Callers 1

dump_database_serversFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected