diff --git a/modelbaker/dbconnector/gpkg_connector.py b/modelbaker/dbconnector/gpkg_connector.py index 6e9c93c..7654471 100644 --- a/modelbaker/dbconnector/gpkg_connector.py +++ b/modelbaker/dbconnector/gpkg_connector.py @@ -16,7 +16,6 @@ ***************************************************************************/ """ import errno -import numbers import os import re import sqlite3 @@ -944,9 +943,7 @@ def create_basket(self, dataset_tid, topic, tilitid_value=None): ).format(topic, fetch_and_increment_feedback) if not tilitid_value: # default value - tilitid_value = f"'{uuid.uuid4()}'" - elif not isinstance(tilitid_value, numbers.Number): - tilitid_value = f"'{tilitid_value}'" + tilitid_value = f"{uuid.uuid4()}" cursor.execute( """ INSERT INTO "{basket_table}" ("{tid_name}", dataset, topic, "{tilitid_name}", attachmentkey )