diff --git a/ArtNet/db/db_adapter.py b/ArtNet/db/db_adapter.py index 65cbbd4..7ba32be 100644 --- a/ArtNet/db/db_adapter.py +++ b/ArtNet/db/db_adapter.py @@ -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'])