From c7b07d6ca86c7e51be7ee6450b0e1ad119b002af Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Tue, 12 Nov 2013 14:14:53 +0000 Subject: [PATCH] Fix freeze examples in the docs --- docs/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 715b626..612ddbe 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -142,12 +142,12 @@ such using the :py:meth:`freeze() ` function:: # export all users into a single JSON result = db['users'].all() - dataset.freeze(result, 'users.json', format='json') + dataset.freeze(result, format='json', filename='users.json') You can create one file per row by setting ``mode`` to "item":: # export one JSON file per user - dataset.freeze(result, 'users/{{ id }}.json', format='json', mode='item') + dataset.freeze(result, format='json', filename='users/{{ id }}.json', mode='item') Since this is a common operation we made it available via command line utility ``datafreeze``. Read more about the :doc:`freezefile markup `.