Fixed a bug when creating Alias tags

The method add_alias_by_name()'s parameters were incorrectly used by create_tag()
dev
Peery 2 years ago
parent 7ef4d88768
commit 8ede24740f
Signed by: pandro
SSH Key Fingerprint: SHA256:iBUZSuDxqYr4hYpe9U3BA9NJmXKpbGt4H0S8hUwIbrA

@ -1,5 +1,5 @@
import logging
from typing import List, Tuple
from typing import List, Tuple, Dict
import psycopg2
from psycopg2.errorcodes import UNIQUE_VIOLATION
@ -637,7 +637,7 @@ class DBAdapter:
"VALUES (LOWER(%(name)s), %(description)s, %(category_id)s)", d)
for alias in aliases:
self.add_alias_by_name(name, alias)
self.add_alias_by_name(name, alias['name'])
for implicant in implications:
self.add_implication_by_ID(self.get_tag_ID(name), implicant['id'])

Loading…
Cancel
Save