style
This commit is contained in:
parent
01e0e5e27e
commit
37bbf0368e
4 changed files with 8 additions and 11 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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(
|
||||
response = requests.get(
|
||||
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
|
||||
).json()
|
||||
)
|
||||
|
||||
if response.get("sha")[:6] == version_info.build:
|
||||
print(
|
||||
|
|
Loading…
Reference in a new issue