Skip to content

Commit

Permalink
Update modelbaker/dbconnector/pg_connector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav authored Nov 24, 2023
1 parent c2ae1c9 commit 90462e8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions modelbaker/dbconnector/pg_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,22 +1026,6 @@ def create_basket(self, dataset_tid, topic, tilitid_value=None):
tilitid_value = "uuid_generate_v4()"
elif not isinstance(tilitid_value, numbers.Number):
tilitid_value = f"'{tilitid_value}'"
print(tilitid_value)
print(
"""
INSERT INTO {schema}.{basket_table} ({tid_name}, dataset, topic, {tilitid_name}, attachmentkey )
VALUES (nextval('{schema}.{sequence}'), {dataset_tid}, '{topic}', {tilitid}, 'modelbaker')
""".format(
schema=self.schema,
sequence="t_ili2db_seq",
tid_name=self.tid,
tilitid_name=self.tilitid,
basket_table=PG_BASKET_TABLE,
dataset_tid=dataset_tid,
topic=topic,
tilitid=tilitid_value,
)
)
cur.execute(
"""
INSERT INTO {schema}.{basket_table} ({tid_name}, dataset, topic, {tilitid_name}, attachmentkey )
Expand Down

0 comments on commit 90462e8

Please sign in to comment.