From 7d9b6e88f6447738a5be9cebcfc499fcaeeef998 Mon Sep 17 00:00:00 2001 From: geirawsm Date: Mon, 18 Nov 2024 15:17:28 +0100 Subject: [PATCH] smol fix --- sausage_bot/util/db_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sausage_bot/util/db_helper.py b/sausage_bot/util/db_helper.py index 5df6ecf..f85de5f 100755 --- a/sausage_bot/util/db_helper.py +++ b/sausage_bot/util/db_helper.py @@ -140,7 +140,8 @@ async def add_missing_db_setup( if len(inserts) > 0: log.debug('`inserts` has length') db_out = await get_output( - template_info=template_info + template_info=template_info, + select=('setting', 'value') ) log.verbose(f'Got `db_out`: {db_out}') db_out = dict(db_out) @@ -150,6 +151,8 @@ async def add_missing_db_setup( temp_inserts.append(insert) elif insert[0] in db_out and db_out[insert[0]] is None: temp_inserts.append(insert) + log.debug(f'temp_inserts: {temp_inserts}') + if len(temp_inserts) > 0: await insert_many_all(template_info, temp_inserts) return dict_in