Skip to content

Commit

Permalink
Merge branch 'DAT-575' into 'main'
Browse files Browse the repository at this point in the history
DAT-575: Add flag for process_date

See merge request data/connectors/target-s3!6
  • Loading branch information
crowemi committed Mar 28, 2023
2 parents b09c755 + ed66ad6 commit 6dcf59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "target-s3"
version = "0.5.1"
version = "0.5.4"
description = "`target-s3` is a Singer target for s3, built with the Meltano Singer SDK."
authors = ["crowemi"]
keywords = [
Expand Down
2 changes: 1 addition & 1 deletion target_s3/formats/format_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def append_process_date(self, records) -> dict:
"""A function that appends the current UTC to every record"""

def process_date(record):
record["_process_date"] = datetime.utcnow().isoformat()
record["_PROCESS_DATE"] = datetime.utcnow().isoformat()
return record

return list(map(lambda x: process_date(x), records))

0 comments on commit 6dcf59f

Please sign in to comment.