From 8ede24740f99069050836eef7ce8192f8a3ecf31 Mon Sep 17 00:00:00 2001 From: Peery Date: Sat, 18 Feb 2023 23:43:32 +0100 Subject: [PATCH] Fixed a bug when creating Alias tags The method add_alias_by_name()'s parameters were incorrectly used by create_tag() --- ArtNet/db/db_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])