Skip to content

Commit

Permalink
Use pendulum.now if current_datetime is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Apr 3, 2024
1 parent f4d2949 commit 4e0a3ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlt/destinations/path_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def params(self) -> Optional[Dict[str, Any]]:
* file id,
* current datetime
"""
if not self.current_datetime:
self.current_datetime = pendulum.now()

# If current_datetime is callable
# Then call it and check it's instance
Expand Down

0 comments on commit 4e0a3ba

Please sign in to comment.