Fixed empty tags
This commit is contained in:
parent
f26c0c6cd8
commit
45775c607c
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ def write_sql_link_details(link: Link, out_dir: Path=OUTPUT_DIR) -> None:
|
||||||
tag_list = list(tag_set) or []
|
tag_list = list(tag_set) or []
|
||||||
|
|
||||||
for tag in tag_list:
|
for tag in tag_list:
|
||||||
snap.tags.add(tag)
|
# TODO check empty tags
|
||||||
|
if snap.tags:
|
||||||
|
snap.tags.add(tag)
|
||||||
snap.save()
|
snap.save()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue