utils.py

About this file

Few functions are defined as follows:
Function update_agency_active_status() updates the active status of an agency.
Function get_agency_feature() retrieves the specified agency feature for the specified agency in the form of a JSON object. It takes two params agency_ein and specified feature.
Function get_agency_features() retrieves the agency features JSON object for the specified agency by taking one parameter agency_ein.

Code Check Report


No problems to report
                        

Documentation drawn from source code


update_agency_active_status(agency_ein, is_active):

Update the active status of an agency.
:param agency_ein: String identifier for agency (4 characters)
:param is_active: Boolean value for agency active status (True = Active)
:return: Boolean value (True if successfully changed active status)

get_agency_feature(agency_ein, feature):

Retrieve the specified agency feature for the specified agency.

:param agency_ein: String identifier for agency (4 characters)
:param feature: Feature specified. See app/lib/constants/agency_features.py for possible values (String)

:return: JSON Object

get_agency_features(agency_ein):

Retrieve the agency features JSON object for the specified agency.

:param agency_ein: String identifier for agency (4 characters)
:return: JSON Object

Source code