def build_filters(gearman_worker, raw_filters):
    """
    Replace any wildcards in the provided filters
    """

    return_filters = raw_filters
    return_filters['includeFilter'] = [include_filter.replace('{cruiseID}', gearman_worker.cruise_id) for include_filter in return_filters['includeFilter']]

    return return_filters