From 87477820ec503c2b1cf6204a38dbef74b874681d Mon Sep 17 00:00:00 2001 From: Brad Brown Date: Fri, 24 Jun 2022 07:01:50 -0500 Subject: [PATCH] fix bulk insert --- wordlinator/db/pg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordlinator/db/pg.py b/wordlinator/db/pg.py index 78a9539..4349663 100644 --- a/wordlinator/db/pg.py +++ b/wordlinator/db/pg.py @@ -233,7 +233,7 @@ class WordleDb: def bulk_insert_scores(self, scores: typing.List[typing.Dict]): with db.atomic() as txn: for batch in peewee.chunked(scores, 50): - Score.insert_many(batch).execute(txn) + Score.insert_many(batch).execute() def bulk_update_scores(self, scores: typing.List[Score]): with db.atomic():