Exemple #1
0
def remove_availability(user):
    try:
        user = User(user)
    except KeyError:
        abort(404)
    user.remove_availability()
    return jsonify(user.get_availability())
Exemple #2
0
def view_availability(user):
    try:
        user = User(user)
    except KeyError:
        abort(404)
    return jsonify(user.get_availability())