o
    Q?he                     @   s    d dl mZ dd Zdd ZdS )    )dbc              	   C   s@   t | ||||||d}td| d|j|dd |S )N)
supplierididnamecitystatezipcountry	suppliers	locationsT)merge)dictr   
collectiondocumentset)
supplierIdr   r   r   r   r   r	   location r   R/var/www/html/riverr-enterprise-integrations-main/functions/Suppliers/Locations.pysaveLocation   s   &	r   c                 C   s(   t d| d }dd |D S )Nr
   r   c                 S   s   g | ]}|  qS r   )to_dict).0r   r   r   r   
<listcomp>   s    z getLocations.<locals>.<listcomp>)r   r   r   get)r   r   r   r   r   getLocations   s   r   N)configs.firebaser   r   r   r   r   r   r   <module>   s    