Skip to content

Commit

Permalink
loads latest 30 days of issues instead of fixed date
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Sep 2, 2024
1 parent c00a774 commit 36cc957
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dlt/sources/rest_api_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Any

import dlt
from dlt.common.pendulum import pendulum
from dlt.sources.rest_api import (
RESTAPIConfig,
check_connection,
rest_api_source,
rest_api_resources,
rest_api_source,
)


Expand Down Expand Up @@ -58,7 +59,7 @@ def github_source(github_token: str = dlt.secrets.value) -> Any:
"since": {
"type": "incremental",
"cursor_path": "updated_at",
"initial_value": "2024-01-25T11:21:28Z",
"initial_value": pendulum.today().subtract(days=30).to_iso8601_string(),
},
},
},
Expand Down

0 comments on commit 36cc957

Please sign in to comment.