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