fix billing
This commit is contained in:
@@ -42,7 +42,7 @@ if __name__ == '__main__':
|
||||
with sqlite3.connect('mydatabase.db') as conn:
|
||||
cursor = conn.cursor()
|
||||
cursor.execute(
|
||||
'CREATE TABLE IF NOT EXISTS %s (id TEXT, sk TEXT, json JSON)'
|
||||
'CREATE TABLE IF NOT EXISTS %s (pk TEXT, sk TEXT, json JSON)'
|
||||
% table_name
|
||||
)
|
||||
|
||||
@@ -51,10 +51,10 @@ if __name__ == '__main__':
|
||||
desc=f'⏳ Inserting into table {table_name}',
|
||||
):
|
||||
cursor.execute(
|
||||
'INSERT INTO %s (id, sk, json) VALUES (:id, :sk, :json)'
|
||||
'INSERT INTO %s (pk, sk, json) VALUES (:pk, :sk, :json)'
|
||||
% table_name,
|
||||
{
|
||||
'id': record['id'],
|
||||
'pk': record['id'],
|
||||
'sk': record['sk'],
|
||||
'json': record,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user