Skip to content

Commit

Permalink
simplecast: fix schema
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Pentori <[email protected]>
  • Loading branch information
apentori committed Apr 22, 2024
1 parent 204812e commit e34407c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source-simplecast-fecther/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 464a7cea-0317-485e-9a9c-bcd06155bfff
dockerImageTag: 1.1.0
dockerImageTag: 1.1.1
dockerRepository: harbor.status.im/status-im/airbyte/source-simplecast-fetcher
githubIssueLabel: source-simplecast-fecther
icon: simplecast-fecther.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@
}
}
}
}
6 changes: 3 additions & 3 deletions source-simplecast-fecther/source_simplecast_fecther/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def request_params(

class Podcast(SimplecastFectherStream):

primary_key = "podcast_id"
primary_key = "id"


@property
Expand Down Expand Up @@ -75,7 +75,7 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
yield podcast

class Episode(HttpSubStream, SimplecastFectherStream):
primary_key="episode_id"
primary_key="id"

@property
def use_cache(self) -> bool:
Expand Down Expand Up @@ -141,7 +141,7 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
yield analytic

class AnalyticLocation(AnalyticSubStream):
primary_key="analytic_location_id"
primary_key=None

def __init__(self, **kwargs):
super().__init__(endpoint="location", keys_dict=LOCATION_KEYS, collection_name="countries", **kwargs)
Expand Down

0 comments on commit e34407c

Please sign in to comment.