Example #1
0
def remove_recent_tower(tower_id):
    tower = TowerDB.query.get_or_404(tower_id)
    current_user.remove_recent_tower(tower)
    r = current_user._get_relation_to_tower(tower)
    response = jsonify(r.to_dict())
    response.status_code = 200
    return response
def on_remove_recent(tower_id):
    log('c_remove_recent', current_user, tower_id)
    tower = towers[tower_id]
    current_user.remove_recent_tower(tower)