Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjushahgupta committed Dec 18, 2024
1 parent 9d76c9e commit 841f3a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ingestr/src/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ def dlt_source(self, uri: str, table: str, **kwargs):

page_size = kwargs.get("page_size")
if page_size is None:
raise ValueError("The 'page_size' flag is required and must be less than or equal to 1000.")
raise ValueError(
"The 'page_size' flag is required and must be less than or equal to 1000."
)

if table.startswith("custom:"):
fields = table.split(":", 3)
Expand Down
1 change: 1 addition & 0 deletions ingestr/src/tiktok_ads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from .tiktok_helpers import TikTokAPI


def find_intervals(
current_date: pendulum.DateTime,
end_date: pendulum.DateTime,
Expand Down
1 change: 0 additions & 1 deletion ingestr/src/tiktok_ads/tiktok_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def fetch_pages(
client = create_client()
while True:
self.params["page"] = current_page
print("page size", self.page_size)
response = client.get(
url=BASE_URL, headers=self.headers, params=self.params
)
Expand Down

0 comments on commit 841f3a2

Please sign in to comment.