aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin5605 <[email protected]>2023-03-03 12:10:52 -0600
committerGravatar Robin5605 <[email protected]>2023-03-03 12:10:52 -0600
commit727b76273d0128c45dcddb5de994c9080822426e (patch)
tree08a6249721fb6de2ba47eac89a330d3df9dfbf4e
parentMerge main (diff)
parentMerge branch 'main' into undeprecate-bookmark (diff)
Merge
-rw-r--r--bot/exts/utilities/challenges.py7
-rw-r--r--poetry.lock23
-rw-r--r--pyproject.toml6
3 files changed, 17 insertions, 19 deletions
diff --git a/bot/exts/utilities/challenges.py b/bot/exts/utilities/challenges.py
index 54e57212..46bc0fae 100644
--- a/bot/exts/utilities/challenges.py
+++ b/bot/exts/utilities/challenges.py
@@ -84,6 +84,7 @@ class InformationDropdown(ui.Select):
# The attribute is not set during initialization.
result_embed = self.mapping_of_embeds[self.values[0]]
await self.original_message.edit(embed=result_embed)
+ await interaction.response.defer()
class Challenges(commands.Cog):
@@ -122,12 +123,8 @@ class Challenges(commands.Cog):
if not first_kata_div:
raise commands.BadArgument("No katas could be found with the filters provided.")
- elif len(first_kata_div) >= 3:
- first_kata_div = choice(first_kata_div[:3])
- elif "q=" not in search_link:
- first_kata_div = choice(first_kata_div)
else:
- first_kata_div = first_kata_div[0]
+ first_kata_div = choice(first_kata_div)
# There are numerous divs before arriving at the id of the kata, which can be used for the link.
first_kata_id = first_kata_div.a["href"].split("/")[-1]
diff --git a/poetry.lock b/poetry.lock
index d1592f49..03abe05a 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1202,14 +1202,14 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest (>=7.2.1)", "pytes
[[package]]
name = "pre-commit"
-version = "3.1.0"
+version = "3.1.1"
description = "A framework for managing and maintaining multi-language pre-commit hooks."
category = "dev"
optional = false
python-versions = ">=3.8"
files = [
- {file = "pre_commit-3.1.0-py2.py3-none-any.whl", hash = "sha256:7001dfcd174540658822b1fd3630ceadf4f41375a5d1844b5c3b3830f227348c"},
- {file = "pre_commit-3.1.0.tar.gz", hash = "sha256:61bd9f1b96d3d1e763f2a9a0f8522aed341646800642ff6803c73fac5781f5b7"},
+ {file = "pre_commit-3.1.1-py2.py3-none-any.whl", hash = "sha256:b80254e60668e1dd1f5c03a1c9e0413941d61f568a57d745add265945f65bfe8"},
+ {file = "pre_commit-3.1.1.tar.gz", hash = "sha256:d63e6537f9252d99f65755ae5b79c989b462d511ebbc481b561db6a297e1e865"},
]
[package.dependencies]
@@ -1452,14 +1452,14 @@ six = ">=1.5"
[[package]]
name = "python-dotenv"
-version = "0.21.1"
+version = "1.0.0"
description = "Read key-value pairs from a .env file and set them as environment variables"
category = "dev"
optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.8"
files = [
- {file = "python-dotenv-0.21.1.tar.gz", hash = "sha256:1c93de8f636cde3ce377292818d0e440b6e45a82f215c3744979151fa8151c49"},
- {file = "python_dotenv-0.21.1-py3-none-any.whl", hash = "sha256:41e12e0318bebc859fcc4d97d4db8d20ad21721a6aa5047dd59f090391cb549a"},
+ {file = "python-dotenv-1.0.0.tar.gz", hash = "sha256:a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba"},
+ {file = "python_dotenv-1.0.0-py3-none-any.whl", hash = "sha256:f5971a9226b701070a4bf2c38c89e5a3f0d64de8debda981d1db98583009122a"},
]
[package.extras]
@@ -1638,14 +1638,14 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)"
[[package]]
name = "sentry-sdk"
-version = "1.15.0"
+version = "1.16.0"
description = "Python client for Sentry (https://sentry.io)"
category = "main"
optional = false
python-versions = "*"
files = [
- {file = "sentry-sdk-1.15.0.tar.gz", hash = "sha256:69ecbb2e1ff4db02a06c4f20f6f69cb5dfe3ebfbc06d023e40d77cf78e9c37e7"},
- {file = "sentry_sdk-1.15.0-py2.py3-none-any.whl", hash = "sha256:7ad4d37dd093f4a7cb5ad804c6efe9e8fab8873f7ffc06042dc3f3fd700a93ec"},
+ {file = "sentry-sdk-1.16.0.tar.gz", hash = "sha256:a900845bd78c263d49695d48ce78a4bce1030bbd917e0b6cc021fc000c901113"},
+ {file = "sentry_sdk-1.16.0-py2.py3-none-any.whl", hash = "sha256:633edefead34d976ff22e7edc367cdf57768e24bc714615ccae746d9d91795ae"},
]
[package.dependencies]
@@ -1654,6 +1654,7 @@ urllib3 = {version = ">=1.26.11", markers = "python_version >= \"3.6\""}
[package.extras]
aiohttp = ["aiohttp (>=3.5)"]
+arq = ["arq (>=0.23)"]
beam = ["apache-beam (>=2.12)"]
bottle = ["bottle (>=0.12.13)"]
celery = ["celery (>=3)"]
@@ -1936,4 +1937,4 @@ multidict = ">=4.0"
[metadata]
lock-version = "2.0"
python-versions = "3.10.*"
-content-hash = "0f2979859a100859791ad5fd1bb268e118a1931faed12d270eceb12eb0fed4dd"
+content-hash = "2c3cdcdb06a11dfc9e5d5802145eeb6e435cc86c614e7e690069ca1bad87b69b"
diff --git a/pyproject.toml b/pyproject.toml
index a34a8a4e..bfb51044 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,7 +17,7 @@ rapidfuzz = "2.13.7"
arrow = "1.2.3"
beautifulsoup4 = "4.11.2"
pillow = "9.4.0"
-sentry-sdk = "1.15.0"
+sentry-sdk = "1.16.0"
PyYAML = "6.0"
emojis = "0.7.0"
coloredlogs = "15.0.1"
@@ -37,8 +37,8 @@ flake8-todo = "0.7"
flake8-isort = "6.0.0"
pep8-naming = "0.13.3"
pip-licenses = "4.0.3"
-pre-commit = "3.1.0"
-python-dotenv = "0.21.1"
+pre-commit = "3.1.1"
+python-dotenv = "1.0.0"
taskipy = "1.10.3"
[tool.taskipy.tasks]