From 04e855848f6e7cfe024ddde4c7422e84c21aca6f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 12 Jun 2017 23:59:44 +0200 Subject: Updated comments. --- src/lib/data.py | 5 +++-- 1 file 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 = [] -- cgit