Skip to content
Open
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
2 changes: 1 addition & 1 deletion hooks/stripe_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run_query(self,
method_to_call = 'all'
if replication_key_value:
stripe_response = getattr(stripe_endpoint, method_to_call)(
ending_before=replication_key_value, **kwargs)
starting_after=replication_key_value, **kwargs)
else:
stripe_response = getattr(stripe_endpoint, method_to_call)(**kwargs)

Expand Down
6 changes: 3 additions & 3 deletions operators/stripe_to_s3_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class StripeToS3Operator(BaseOperator, SkipMixin):
:type replication_key_value: String
"""

template_field = ('s3_key', )
template_fields = ("s3_key", "replication_key_value")

@apply_defaults
def __init__(self,
Expand Down Expand Up @@ -122,15 +122,15 @@ def execute(self, context):
return True

else:
dest_s3 = S3Hook(s3_conn_id=self.s3_conn_id)
dest_s3 = S3Hook(self.s3_conn_id)
dest_s3.load_file(
filename=tmp.name,
key=self.s3_key,
bucket_name=self.s3_bucket,
replace=True

)
dest_s3.connection.close()

tmp.close()

def filter_fields(self, result):
Expand Down