Skip to content

Commit

Permalink
rename variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjushahgupta committed Feb 20, 2025
1 parent 312577e commit 9714d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ingestr/src/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"
)
Expand Down

0 comments on commit 9714d89

Please # to comment.