Skip to content

Fix #725 - correctly parse tags on json import - #908

Merged
pirate merged 1 commit into
ArchiveBox:devfrom
hannah98:dev
Dec 21, 2021
Merged

Fix #725 - correctly parse tags on json import#908
pirate merged 1 commit into
ArchiveBox:devfrom
hannah98:dev

Conversation

@hannah98

Copy link
Copy Markdown
Contributor

Summary

This PR fixes #725 - instead of tags being split on each character, this fix mimics a code block further down in the same file to create a list of tags first before calling the save_tags() method.

tag_set = (
set(tag.strip() for tag in (link.tags or '').split(','))
)

Related issues

#725

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

@lgtm-com

lgtm-com Bot commented Dec 20, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 4b8962b into 9899377 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@pirate

pirate commented Dec 21, 2021

Copy link
Copy Markdown
Member

Thanks @hannah98 !!!

@pirate
pirate merged commit f363738 into ArchiveBox:dev Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pocket and Pinboard imports causing tags to be split incorrectly into individual characters w/ broken hyphenation

2 participants