def get_commodity_code(field): field = strip_millions(field) code = parserutils.get_code_for_title(field, "%s.com_codes" % config.SCHEMA) if not code: print("commodity", field) return code
def get_industry_code(field): field = strip_millions(field) code = parserutils.get_code_for_title(field, "%s.ind_codes" % config.SCHEMA) if not code: print("industry", field) return code