예제 #1
0
파일: scrape.py 프로젝트: pudo/mitzeichner
def persist(petition_id, signer_id, theme, title, creator, end_date, name,
        location, sign_date):
    if not Mitzeichner.by_petition_signer(petition_id, signer_id):
        mitzeichner = Mitzeichner(petition_id, signer_id, theme, title, creator, end_date, name,
                location, sign_date)
        db.session.add(mitzeichner)
        delegations(mitzeichner)