1
0
Fork 0

Fixed empty tags

This commit is contained in:
Angel Rey 2020-09-21 14:29:45 -05:00
parent f26c0c6cd8
commit 45775c607c

View file

@ -72,7 +72,9 @@ def write_sql_link_details(link: Link, out_dir: Path=OUTPUT_DIR) -> None:
tag_list = list(tag_set) or []
for tag in tag_list:
snap.tags.add(tag)
# TODO check empty tags
if snap.tags:
snap.tags.add(tag)
snap.save()