Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(source-pinterest): fix type of default start date when it's not provided #39367

Merged
merged 4 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"states": [
{
"partition": { "id": "549761668032", "parent_slice": {} },
"cursor": { "date": "3021-06-09" }
"cursor": { "DATE": "3021-06-09" }
}
]
},
Expand Down Expand Up @@ -49,7 +49,7 @@
"states": [
{
"partition": { "id": "549761668032", "parent_slice": {} },
"cursor": { "updated_time": 9628867244 }
"cursor": { "updated_time": 9628867244.0 }
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 5cb7e5fe-38c2-11ec-8d3d-0242ac130003
dockerImageTag: 2.0.1
dockerImageTag: 2.0.2
dockerRepository: airbyte/source-pinterest
connectorBuildOptions:
baseImage: docker.io/airbyte/python-connector-base:1.2.2@sha256:57703de3b4c4204bd68a7b13c9300f8e03c0189bffddaffc796f1da25d2dbea0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "2.0.1"
version = "2.0.2"
name = "source-pinterest"
description = "Source implementation for Pinterest."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _validate_and_transform(config: Mapping[str, Any], amount_of_days_allowed_fo
f"Current start_date: {start_date} does not meet API report requirements. "
f"Resetting start_date to: {latest_date_allowed_by_api}"
)
config["start_date"] = latest_date_allowed_by_api.strftime("%Y-%m-%d")
config["start_date"] = latest_date_allowed_by_api

return config

Expand Down
Loading
Loading