예제 #1
0
def reset_app():
    MEETUP_JSON = py.get_meetup_json()  # reset_meetup_json()
    LIST_OF_WINNERS.clear()
    winner = {
        'name': 'PyGlialo is Reset',
        'member_id': '000000',
        'photo_url': '/static/img/Reset_Icon.png'
    }
    reset_text = 'Reset Successful'
    return render_template('random.html', winner=winner, winners=LIST_OF_WINNERS, lead_text=reset_text)
예제 #2
0
def pass_extraction():
    LIST_OF_WINNERS.append('empty_slot')
    lead_text = 'Slot %s is empty :(' % str(len(LIST_OF_WINNERS))
    return render_template('pass.html', winners=LIST_OF_WINNERS, lead_text=lead_text)
예제 #3
0
def save_winner(name):
    if name not in LIST_OF_WINNERS:
        LIST_OF_WINNERS.append(name)
        py.remove_member_from_pool(name)
    return redirect(url_for('saved'))