def turnover_projections(self): """ Return a query for turnover projections """ query = TurnoverProjection.query() query = query.filter( TurnoverProjection.company_id == self.request.context.id) result = query.filter(TurnoverProjection.year == self.year) return result
def turnover_projections(self): """ Return a query for turnover projections """ query = TurnoverProjection.query() query = query.filter( TurnoverProjection.company_id == self.request.context.id ) result = query.filter(TurnoverProjection.year == self.year) return result
def getOne(): return TurnoverProjection.query().first()