Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-J committed Aug 23, 2022
1 parent 54286c3 commit d8d596d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tuxbot/cogs/Polls/commands/Poll/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def build_embed(bot: Tuxbot, poll: PollsModel) -> discord.Embed:
icon_url="https://img.icons8.com/plasticine/100/000000/survey.png",
)

for i, choice in enumerate(await poll.choices.order_by("label").all()):
for choice in await poll.choices.order_by("label").all():
chart_labels.append(textwrap.shorten(choice.choice, width=42))
chart_data.append(choice.checked)

Expand Down
4 changes: 2 additions & 2 deletions tuxbot/cogs/Utils/commands/Info/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ async def __fetch_info(path: str) -> dict[str, typing.Any]:
file_amount = 0
python_file_amount = 0

for path, _, files in os.walk(path):
for p, _, files in os.walk(path):
for name in files:
file_dir = str(pathlib.PurePath(path, name))
file_dir = str(pathlib.PurePath(p, name))
if "env" in file_dir:
continue

Expand Down
2 changes: 1 addition & 1 deletion tuxbot/core/collections/ModuleCollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Contains all module collections
"""
import glob
import importlib.util
import importlib
import inspect
import os
import typing
Expand Down

0 comments on commit d8d596d

Please sign in to comment.