From 9714d8910d6957b42160e735c9beb107f05bf4d3 Mon Sep 17 00:00:00 2001 From: Sanju Date: Thu, 20 Feb 2025 19:17:21 +0100 Subject: [PATCH] rename variable name --- ingestr/src/sources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ingestr/src/sources.py b/ingestr/src/sources.py index d3ef9c38..5410f32e 100644 --- a/ingestr/src/sources.py +++ b/ingestr/src/sources.py @@ -1807,7 +1807,7 @@ def dlt_source(self, uri: str, table: str, **kwargs): if api_key is None: raise ValueError("api_key is required to connect to AppLovin Max API.") - TABLE_NAME = ["user_ad_revenue"] + AVAILABLE_TABLES = ["user_ad_revenue"] table_fields = table.split(":") requested_table = table_fields[0] @@ -1817,10 +1817,10 @@ def dlt_source(self, uri: str, table: str, **kwargs): "Invalid table format. Expected format is user_ad_revenue:app_id_1,app_id_2" ) - if requested_table not in TABLE_NAME: + if requested_table not in AVAILABLE_TABLES: raise ValueError( f"Table name '{requested_table}' is not supported for AppLovin Max source yet." - f"Only '{TABLE_NAME}' is currently supported. " + f"Only '{AVAILABLE_TABLES}' are currently supported. " "If you need additional tables, please create a GitHub issue at " "https://github.com/bruin-data/ingestr" )