Example #1
0
def lastusernotify(user):
    Channel.update_from_user(user, db.session, type_user=CHANNEL_TYPE.PERSON, type_org=CHANNEL_TYPE.ORGANIZATION)
    db.session.commit()
Example #2
0
def lastuserauth():
    Channel.update_from_user(current_auth.user, db.session, type_user=CHANNEL_TYPE.PERSON, type_org=CHANNEL_TYPE.ORGANIZATION)
    db.session.commit()
    return redirect(get_next_url())