Пример #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'
        )
Пример #2
0
 def testGetFromDB(self):
     contacts = Contact.get_missing_pct()
     pass