Beispiel #1
0
def cleaned_items(tiids, myredis, override_export_clean=False, most_recent_metric_date=None, most_recent_diff_metric_date=None):
    items_dict = collection.get_items_for_client(tiids, myrefsets, myredis, most_recent_metric_date, most_recent_diff_metric_date)

    secret_key = os.getenv("API_ADMIN_KEY")
    supplied_key = request.args.get("api_admin_key", "")
    cleaned_items_dict = {}
    for tiid in items_dict:
        cleaned_items_dict[tiid] = item_module.clean_for_export(items_dict[tiid], supplied_key, secret_key, override_export_clean)
    return cleaned_items_dict
Beispiel #2
0
def cleaned_items(tiids, myredis):
    items_dict = collection.get_items_for_client(tiids, myrefsets, myredis)

    secret_key = os.getenv("API_ADMIN_KEY")
    supplied_key = request.args.get("api_admin_key", "")
    cleaned_items_dict = {}
    for tiid in items_dict:
        cleaned_items_dict[tiid] = item_module.clean_for_export(items_dict[tiid], supplied_key, secret_key)
    return cleaned_items_dict
Beispiel #3
0
def cleaned_items(tiids, myredis):
    items_dict = collection.get_items_for_client(tiids, myrefsets, myredis)

    secret_key = os.getenv("API_ADMIN_KEY")
    supplied_key = request.args.get("api_admin_key", "")
    cleaned_items_dict = {}
    for tiid in items_dict:
        cleaned_items_dict[tiid] = item_module.clean_for_export(
            items_dict[tiid], supplied_key, secret_key)
    return cleaned_items_dict
Beispiel #4
0
def cleaned_items(tiids,
                  myredis,
                  override_export_clean=False,
                  most_recent_metric_date=None,
                  most_recent_diff_metric_date=None):
    items_dict = collection.get_items_for_client(tiids, myrefsets, myredis,
                                                 most_recent_metric_date,
                                                 most_recent_diff_metric_date)

    secret_key = os.getenv("API_ADMIN_KEY")
    supplied_key = request.args.get("api_admin_key", "")
    cleaned_items_dict = {}
    for tiid in items_dict:
        cleaned_items_dict[tiid] = item_module.clean_for_export(
            items_dict[tiid], supplied_key, secret_key, override_export_clean)
    return cleaned_items_dict