diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-06-12 23:59:44 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-06-12 23:59:44 +0200 |
commit | 04e855848f6e7cfe024ddde4c7422e84c21aca6f (patch) | |
tree | e01de3a5d5682407e9b2495be5de407675ce4cfd /src | |
parent | JSON export of bookmarks (compatible with Pinboard) (diff) | |
download | newspipe-04e855848f6e7cfe024ddde4c7422e84c21aca6f.tar.gz newspipe-04e855848f6e7cfe024ddde4c7422e84c21aca6f.tar.bz2 newspipe-04e855848f6e7cfe024ddde4c7422e84c21aca6f.zip |
Updated comments.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/data.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/data.py b/src/lib/data.py index 3d5ec495..75f6b8aa 100644 --- a/src/lib/data.py +++ b/src/lib/data.py @@ -165,8 +165,7 @@ def export_json(user): def import_pinboard_json(user, json_content): - """ - Import bookmarks from a pinboard JSON export. + """Import bookmarks from a pinboard JSON export. """ bookmark_contr = BookmarkController(user.id) tag_contr = BookmarkTagController(user.id) @@ -193,6 +192,8 @@ def import_pinboard_json(user, json_content): def export_bookmarks(user): + """Export all bookmarks of a user (compatible with Pinboard). + """ bookmark_contr = BookmarkController(user.id) bookmarks = bookmark_contr.read() export = [] |