diff --git a/tuxbot/cogs/Custom/functions/converters.py b/tuxbot/cogs/Custom/functions/converters.py index 328fa15..fa81ad9 100644 --- a/tuxbot/cogs/Custom/functions/converters.py +++ b/tuxbot/cogs/Custom/functions/converters.py @@ -2,7 +2,8 @@ from discord.ext import commands from jishaku.models import copy_context_with -def _(x): return x +def _(x): + return x class AliasConvertor(commands.Converter): diff --git a/tuxbot/cogs/Polls/functions/converters.py b/tuxbot/cogs/Polls/functions/converters.py index 3b2cbcc..5b1b80b 100644 --- a/tuxbot/cogs/Polls/functions/converters.py +++ b/tuxbot/cogs/Polls/functions/converters.py @@ -7,7 +7,8 @@ from tuxbot.cogs.Polls.functions.exceptions import ( from tuxbot.cogs.Polls.models import Poll -def _(x): return x +def _(x): + return x class PollConverter(commands.Converter): diff --git a/tuxbot/cogs/Polls/polls.py b/tuxbot/cogs/Polls/polls.py index 1d7986f..3f28a89 100644 --- a/tuxbot/cogs/Polls/polls.py +++ b/tuxbot/cogs/Polls/polls.py @@ -170,9 +170,7 @@ class Polls(commands.Cog, name="Polls"): field["name"][6:].replace("__", "") ) - chart_options["data"]["datasets"][0].get("data").append( - responders - ) + chart_options["data"]["datasets"][0]["data"].append(responders) if responders <= 1: field["value"] = f"**{responders}** vote" diff --git a/tuxbot/setup.py b/tuxbot/setup.py index b83a747..007a75b 100644 --- a/tuxbot/setup.py +++ b/tuxbot/setup.py @@ -1,6 +1,5 @@ import argparse import importlib -import json import logging import os import re @@ -401,11 +400,9 @@ def basic_setup() -> None: def update() -> None: - response = ( - requests.get( - "https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master" - ).json() - ) + response = requests.get( + "https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master" + ).json() if response.get("sha")[:6] == version_info.build: print(