Skip to content

Commit

Permalink
Converted headers to dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Dec 21, 2024
1 parent d839b0e commit 81aba3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sausage_bot/cogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ async def list_settings(
template_info=envs.stats_db_settings_schema,
select=('setting', 'value')
)
headers_settings = [
I18N.t('stats.commands.list.headers.settings.setting'),
I18N.t('stats.commands.list.headers.settings.value')
]
headers_settings = {
'setting': I18N.t('stats.commands.list.headers.settings.setting'),
'value': I18N.t('stats.commands.list.headers.settings.value')
}
out = '## {}\n```{}```'.format(
I18N.t('stats.commands.list.stats_msg_out.sub_settings'),
tabulate(settings_in_db, headers=headers_settings)
Expand Down

0 comments on commit 81aba3e

Please sign in to comment.