Compare commits

..

3 Commits

Author SHA1 Message Date
Luna e3ca982efd tox: use any py3 in the system 2023-05-26 18:59:14 -03:00
Luna eb17387d3d update dependencies 2023-05-26 18:58:59 -03:00
Luna 640db366a4 fix typo 2023-05-26 18:58:40 -03:00
4 changed files with 923 additions and 153 deletions

View File

@ -432,20 +432,22 @@ class Storage:
return {**row, **drow}
elif chan_type == ChannelType.GUILD_VOICE:
voice_channel_data = await self.db.fetchrow(
"""
voice_channel_data = dict(
await self.db.fetchrow(
"""
SELECT bitrate, user_limit
FROM guild_voice_channels
WHERE id = $1
""",
row["id"],
row["id"],
)
)
guild_region = await self.db.fetchval(
"""
SELECT region
FROM guilds
WHERE guild.id = $1
WHERE guilds.id = $1
""",
int(row["guild_id"]),
)
@ -453,7 +455,7 @@ class Storage:
# see https://gitlab.com/litecord/litecord/-/issues/130
voice_channel_data["rtc_region"] = guild_region
return {**row, **dict(voice_channel_data)}
return {**row, **voice_channel_data}
else:
# this only exists to trick mypy. this codepath is unreachable
raise AssertionError("Unreachable code path.")

1046
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,19 +7,19 @@ license = "GPLv3-only"
[tool.poetry.dependencies]
python = "^3.9"
bcrypt = "^3.2.2"
bcrypt = "^4.0.1"
itsdangerous = "^2.1.2"
asyncpg = "^0.26.0"
websockets = "^10.3"
asyncpg = "^0.27.0"
websockets = "^11.0.3"
Earl-ETF = "^2.1.2"
logbook = "^1.5.3"
Cerberus = "^1.3.4"
quart = "^0.18.0"
pillow = "^9.2.0"
aiohttp = "^3.8.1"
zstandard = "^0.18.0"
quart = "^0.18.4"
pillow = "^9.5.0"
aiohttp = "^3.8.4"
zstandard = "^0.21.0"
winter = {git = "https://gitlab.com/elixire/winter"}
wsproto = "^1.1.0"
wsproto = "^1.2.0"

View File

@ -1,5 +1,5 @@
[tox]
envlist = py3.10
envlist = py3
isolated_build = true
[testenv]