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