diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:17:31 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:17:31 +0100 |
commit | 188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940 (patch) | |
tree | 8e90913fc9606efd79cd161129082319cb1f2581 /newspipe/lib/data.py | |
parent | Added SQLite configuration file. (diff) | |
download | newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.tar.gz newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.tar.bz2 newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.zip |
removed unused variable
Diffstat (limited to 'newspipe/lib/data.py')
-rw-r--r-- | newspipe/lib/data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newspipe/lib/data.py b/newspipe/lib/data.py index 89f6bca6..61c481d1 100644 --- a/newspipe/lib/data.py +++ b/newspipe/lib/data.py @@ -200,7 +200,7 @@ def import_pinboard_json(user, json_content): """Import bookmarks from a pinboard JSON export. """ bookmark_contr = BookmarkController(user.id) - tag_contr = BookmarkTagController(user.id) + BookmarkTagController(user.id) bookmarks = json.loads(json_content.decode("utf-8")) nb_bookmarks = 0 for bookmark in bookmarks: @@ -224,7 +224,7 @@ def import_pinboard_json(user, json_content): "time": time, "tags": tags, } - new_bookmark = bookmark_contr.create(**bookmark_attr) + bookmark_contr.create(**bookmark_attr) nb_bookmarks += 1 return nb_bookmarks |