Skip to content

Commit

Permalink
fix export missing stream err
Browse files Browse the repository at this point in the history
  • Loading branch information
Seniatical committed Apr 9, 2023
1 parent 03b27e8 commit 1d9d431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ezycore/drivers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ def map_to_model(self, **kwds) -> None:
"""

@abstractmethod
def export(self, stream: Iterator[Union[dict, Model]], include: set, exclude: set) -> None:
def export(self, location: str, stream: Iterator[Union[dict, Model]], include: set, exclude: set) -> None:
""" Exports data from any object supporting the `__next__` method
Parameters
----------
location: str
Location to export data to
stream: Iterator[Union[:class:`dict`, :class:`Model`]]
An object which returns values to export
include: :class:`set`
Expand Down
2 changes: 1 addition & 1 deletion ezycore/manager/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def populate_using_driver(self, location: str, driver: Driver, **driver_kwargs)
def export_segment(self, location: str, driver: Driver = None, **driver_kwargs) -> None:
seg = self.get_segment(location)

driver.export(seg, **driver_kwargs)
driver.export(location, seg, **driver_kwargs)

###########################################################################################
##
Expand Down

0 comments on commit 1d9d431

Please sign in to comment.