fix billing

This commit is contained in:
2025-08-27 22:17:33 -03:00
parent b3a4b48fe5
commit 83c97f409b
12 changed files with 129 additions and 45 deletions

View File

@@ -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,
},