def crewboard(): if request.method == 'GET': dao = Dao(stateful=True) contacts = Contact.get_activists(dao) precincts = Precinct.get_all(dao) return render_template( 'con_crewboard.html', title='Battle Stations', contacts=[contact.serialize() for contact in contacts], precincts=[precinct.serialize() for precinct in precincts])
def crewboard(): if request.method == 'GET': dao = Dao(stateful=True) contacts = Contact.get_activists(dao) precincts = Precinct.get_all(dao) return render_template( 'con_crewboard.html', title='Battle Stations', contacts=[contact.serialize() for contact in contacts], precincts=[precinct.serialize() for precinct in precincts] )
def test_get_activists(self): rex = Contact.get_activists(self.dao) pass