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