def compute_args(request, update={}):
    """Merges all view_args and request args then update with
    user args.

    :param update: The user args
    """
    args = request.view_args.copy()
    args = dict(dict(request.args.to_dict(flat=True)), **args)
    args = dict(args, **update)
    return args
