def get_reports_by_department(self, department):
    for report in self.db['reports'].find({'department': department}):
        (yield report)
def get_reports_by_department(self, department):
    for report in self.db['reports'].find({'department': department}):
        (yield report)