

@classmethod
@postonly
@jsonify
def cancel_notification_by_key(cls, slug):
    game = _get_game(key)
    user = _get_user_name()
    key = request.POST.get('key')
    if (not key):
        raise BadRequest('No task-key given')
    GameNotificationTaskListManager.cancel_notification_by_key(game, user, key)
    return {
        'ok': True,
    }

dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/controllers/apiv1/gamenotifications.py GamenotificationsController.cancel_notification_by_key/VarMisuse@25/32 `slug`->`key`