def index(): investment_info = InvestmentInfo.get_master_db() investments = Investment.query(Investment.is_public == True).order(Investment.order_id) tenancy_info = TenancyInfo.get_master_db() tenancies = Tenancy.query(Tenancy.is_public == True).order(Tenancy.order_id) employees = Employee.query(Employee.is_investment == True) return render_template( 'investment/index.html', html_class='services_page', investment_info=investment_info, investments=investments, tenancy_info=tenancy_info, tenancies=tenancies, employees=employees, active_element='investment' )
def inv_list(): investments = Investment.query().order(Investment.order_id) return render_template( 'investment/admin/list.html', investments=investments )