Skip to content

Commit

Permalink
Use write_entity instead of deprecated write_object
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Mar 5, 2024
1 parent e1c5718 commit 87fd483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftmstore/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def write_stream(dataset, file, origin=NULL_ORIGIN):


def iterate_stream(dataset, file, entity_id=None):
from followthemoney.cli.util import write_object
from followthemoney.cli.util import write_entity

for entity in dataset.iterate(entity_id=entity_id):
log.debug("[%s]: %s", entity.id, entity.caption)
write_object(file, entity)
write_entity(file, entity)


@click.group(help="Store FollowTheMoney object data")
Expand Down

0 comments on commit 87fd483

Please sign in to comment.