Skip to content

Commit

Permalink
smol fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Nov 18, 2024
1 parent 9a27aa7 commit 7d9b6e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sausage_bot/util/db_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit 7d9b6e8

Please sign in to comment.