@app.route('/view/states', defaults={'state': None})
@app.route('/view/states/<state>')
@login_required
def view_states(state):
    if state:
        if state in VALID_STATES:
            return render_template('states.html', state=state)
        else:
            abort(404)
    else:
        return render_template('states.html', state='alerting')
dataset/ETHPy150Open pandemicsyn/stalker/stalkerweb/stalkerweb/views.py/view_states/original