Skip to content

Commit

Permalink
fix chromium meta_info bug
Browse files Browse the repository at this point in the history
  • Loading branch information
radam9 committed May 10, 2024
1 parent 0965989 commit 48e54e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bookmarks_converter/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _convert_url_to_json(self):
return url

def _check_instance_type(self, type_):
""""Check that the type of the instance matches the type of executed method"""
""" "Check that the type of the instance matches the type of executed method"""
if self.type != type_:
raise TypeError(f"The item you are converting is not a {type_}")

Expand Down Expand Up @@ -287,9 +287,9 @@ class JSONBookmark(NodeMixin):

def __init__(self, **kwargs):
# Chrome has added a new field in their json file `meta_info`.
# This field is a dictionary with key/value pairs.
# ignore this field for the time being as it only contains `last_visited_desktop` key.
if "last_visited_desktop" in kwargs:
# This field is a dictionary with key/value pairs, and doesn't have an `id` field.
# ignore this field for the time being as it contains meta information.
if "id" not in kwargs:
return

# check the version of the passed json file depending on unique elements
Expand Down

0 comments on commit 48e54e9

Please sign in to comment.