Skip to content

Commit

Permalink
Merge pull request #109 from opengisch/fix-bid
Browse files Browse the repository at this point in the history
do not add singlequotes to t_ili_tids,
  • Loading branch information
signedav authored Sep 27, 2024
2 parents c43ea23 + 37c2ffc commit 588a529
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 588a529

Please sign in to comment.