Skip to content

Commit

Permalink
fix(source-pinterest): fix type of default start date when it's not p…
Browse files Browse the repository at this point in the history
…rovided (#39367)
  • Loading branch information
darynaishchenko committed Jun 11, 2024
1 parent fc781bd commit fbd3268
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 45 deletions.
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

0 comments on commit fbd3268

Please sign in to comment.