def get_message(self, data):
        if not self._is_pilot_location():
            return SOH_CONFIRM
        else:
            overstocked_msg = ""
            products_msg = ""
            for product_code, stock_on_hand, six_month_consumption in overstocked_products(self.sql_location):
                overstocked_msg += "%s: %s " % (product_code, stock_on_hand)
                products_msg += "%s: %s " % (product_code, six_month_consumption)

            if overstocked_msg and products_msg:
                self.respond(
                    SOH_OVERSTOCKED, overstocked_list=overstocked_msg.strip(), products_list=products_msg.strip()
                )
            return REMINDER_TRANS
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/handlers/soh.py/SOHHandler.get_message/original