1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-19 04:41:48 +02:00

Removed comments

This commit is contained in:
Angel Rey
2020-09-22 11:07:28 -05:00
parent e06d3f9128
commit 533ae7413c

View File

@@ -86,17 +86,6 @@ def merge_links(a: Link, b: Link) -> Link:
)
# all unique, truthy tags
#tags_a = []
#if a.tags:
# tags_a = a.tags.all()
#tags_b = []
#if b.tags:
# tags_b = b.tags.all()
#tags_set = (
# set(tag.name.strip() for tag in tags_a)
# | set(tag.name.strip() for tag in tags_b)
#)
tags_set = (
set(tag.strip() for tag in (a.tags or '').split(','))
| set(tag.strip() for tag in (b.tags or '').split(','))