Skip to content

Commit

Permalink
Small cleanup for extra_params contructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Apr 2, 2024
1 parent e32d929 commit ae6a62f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dlt/destinations/impl/filesystem/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def __init__(

self.table_name = None
self.file_id = None
self.file_format = None
if job_info:
self.table_name = job_info.table_name
self.file_id = job_info.file_id
self.file_format = job_info.file_format

def __enter__(self) -> Self:
return self
Expand Down Expand Up @@ -78,9 +80,9 @@ def params(self) -> Optional[Dict[str, Any]]:
if self.job_info:
self._params.update(
{
"file_id": self.job_info.file_id,
"ext": self.job_info.file_format,
"table_name": self.job_info.table_name,
"table_name": self.table_name,
"file_id": self.file_id,
"ext": self.file_format,
}
)

Expand Down

0 comments on commit ae6a62f

Please sign in to comment.