Exemplo n.º 1
0
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'
        )
Exemplo n.º 2
0
 def testGetFromDB(self):
     contacts = Contact.get_missing_pct()
     pass