A lot of code clean up! Also adding in Response everywhere...
This commit is contained in:
@@ -99,6 +99,8 @@ def get_address_rec_list(
|
||||
|
||||
|
||||
# ### BEGIN ### API Address Methods ### create_address_obj() ###
|
||||
# NOTE: This will create an address.
|
||||
# Reviewed and updated 2021-08-10
|
||||
def create_address_obj(address_obj_new:Address_Base):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
@@ -122,6 +124,8 @@ def create_address_obj(address_obj_new:Address_Base):
|
||||
|
||||
|
||||
# ### BEGIN ### API Address Methods ### update_address_obj() ###
|
||||
# NOTE: This will update an address.
|
||||
# Reviewed and updated 2021-08-10
|
||||
def update_address_obj(
|
||||
address_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value.
|
||||
address_obj_up: Address_Base,
|
||||
|
||||
Reference in New Issue
Block a user