def precincts(): if request.method == 'GET': rex = Contact.get_missing_pct() if not rex: return jsonify(msg='No contacts without precinct!') contacts = [rec.serialize() for rec in rex] rex = Modification.get() mods = [rec.serialize() for rec in rex] return render_template( 'contacts/pcts.html', contacts=contacts, modifications=mods, title='Assign Precincts' )
def testGetFromDB(self): contacts = Contact.get_missing_pct() pass