We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6172893 commit f0576eaCopy full SHA for f0576ea
target_notion/sinks.py
@@ -104,9 +104,7 @@ def get_data_source_schema(self) -> dict:
104
Returns:
105
dict: The data_source schema.
106
"""
107
- db = self.client.data_sources.retrieve(self.data_source_id)
108
- data_source_id = db["data_sources"][0]["id"]
109
- data_source = self.client.data_sources.retrieve(data_source_id)
+ data_source = self.client.data_sources.retrieve(self.data_source_id)
110
return {
111
snakecase(name): {"name": name, "type": _property["type"]}
112
for name, _property in data_source["properties"].items()
0 commit comments