def get(self,title): startDate = get_startDay() reports = Report().all() reports.filter('title', title) reports.order('-date') reports.filter('date >' ,startDate) feed = FeedFMSParser() final_report = feed.list_items() final_report += [r.to_dict() for r in reports] json = simplejson.dumps(final_report) self.response.headers.add_header('content-type', 'application/json', charset='utf-8') self.response.out.write(json)
def get(self): feed = FeedFMSParser() final_report = feed.store_items() json = simplejson.dumps(final_report) self.response.headers.add_header('content-type', 'application/json', charset='utf-8') self.response.out.write(json)