Skip to content

Commit

Permalink
do not add singlequotes to t_ili_tids, since they are recognized anyw…
Browse files Browse the repository at this point in the history
…ay as strings. Fixes opengisch/QgisModelBaker#958
  • Loading branch information
signedav committed Sep 27, 2024
1 parent c43ea23 commit 37c2ffc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modelbaker/dbconnector/gpkg_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
***************************************************************************/
"""
import errno
import numbers
import os
import re
import sqlite3
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 37c2ffc

Please sign in to comment.