Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 25, 2024
1 parent 57cb869 commit e3a13dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tap_linkedin_ads/streams/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def post_process(self, row: dict, context: dict | None = None) -> dict | None:
# Manual date filtering
date = datetime.fromisoformat(row["last_modified_time"])
start_date = self.get_starting_timestamp(context)
end_date = datetime.fromisoformat(self.config["end_date"]).replace(tzinfo=timezone.utc)
end_date = datetime.fromisoformat(self.config["end_date"]).replace(
tzinfo=timezone.utc
)
if date >= start_date and date <= end_date:
return super().post_process(row, context)
return None
Expand Down

0 comments on commit e3a13dc

Please sign in to comment.