This commit is contained in:
Romain J 2021-01-21 16:13:46 +01:00
parent 01e0e5e27e
commit 37bbf0368e
4 changed files with 8 additions and 11 deletions

View file

@ -2,7 +2,8 @@ from discord.ext import commands
from jishaku.models import copy_context_with from jishaku.models import copy_context_with
def _(x): return x def _(x):
return x
class AliasConvertor(commands.Converter): class AliasConvertor(commands.Converter):

View file

@ -7,7 +7,8 @@ from tuxbot.cogs.Polls.functions.exceptions import (
from tuxbot.cogs.Polls.models import Poll from tuxbot.cogs.Polls.models import Poll
def _(x): return x def _(x):
return x
class PollConverter(commands.Converter): class PollConverter(commands.Converter):

View file

@ -170,9 +170,7 @@ class Polls(commands.Cog, name="Polls"):
field["name"][6:].replace("__", "") field["name"][6:].replace("__", "")
) )
chart_options["data"]["datasets"][0].get("data").append( chart_options["data"]["datasets"][0]["data"].append(responders)
responders
)
if responders <= 1: if responders <= 1:
field["value"] = f"**{responders}** vote" field["value"] = f"**{responders}** vote"

View file

@ -1,6 +1,5 @@
import argparse import argparse
import importlib import importlib
import json
import logging import logging
import os import os
import re import re
@ -401,11 +400,9 @@ def basic_setup() -> None:
def update() -> None: def update() -> None:
response = ( response = requests.get(
requests.get(
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master" "https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
).json() ).json()
)
if response.get("sha")[:6] == version_info.build: if response.get("sha")[:6] == version_info.build:
print( print(