Skip to content

Commit

Permalink
stats_hide_roles as None doesn't work i list() in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Aug 12, 2024
1 parent 0051991 commit cc5b872
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sausage_bot/cogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,13 @@ async def tabify(
_codebase = get_stats_codebase()
lines_in_codebase = _codebase['total_lines']
files_in_codebase = _codebase['total_files']
stats_hide_roles = list(
await db_helper.get_output(
template_info=envs.stats_db_hide_roles_schema
)
stats_hide_roles = await db_helper.get_output(
template_info=envs.stats_db_hide_roles_schema
)
if stats_hide_roles:
stats_hide_roles = list(stats_hide_roles)
else:
stats_hide_roles = None
log.debug(f'`stats_hide_roles` is {stats_hide_roles}')
# Get server members
members = get_role_numbers(
Expand Down

0 comments on commit cc5b872

Please sign in to comment.