def retreive(self, business): ''' Given a particular business ID, retrieve all flags if any associated with the business. ''' flag_results = Flag.view('flag/business', key=business) flags = [] for flag in flag_results: flags.append(flag) return flags