def get(self, factory_ID): # respond to a GET report = Report() self.write(report.get_factory_data(int(factory_ID)))