Skip to content

Commit 3e71617

Browse files
committed
linting
1 parent 0b5bced commit 3e71617

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

backend/onyx/connectors/discord/connector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ async def _fetch_documents_from_channel(
118118
start_time = discord_epoch
119119

120120
# NOTE: limit=None is the correct way to fetch all messages and threads with pagination
121-
# The discord package erroneously uses limit for both pagination AND number of results.
122-
# This causes the history and archived_threads methods to return 100 results even if there are more results within the filters.
123-
# Pagination is handled automatically (100 results at a time) when limit=None.
121+
# The discord package erroneously uses limit for both pagination AND number of results
122+
# This causes the history and archived_threads methods to return 100 results even if there are more results within the filters
123+
# Pagination is handled automatically (100 results at a time) when limit=None
124124

125125
async for channel_message in channel.history(
126126
limit=None,
@@ -161,7 +161,7 @@ async def _fetch_documents_from_channel(
161161

162162
async for archived_thread in channel.archived_threads(
163163
limit=None,
164-
):
164+
):
165165
async for thread_message in archived_thread.history(
166166
limit=None,
167167
after=start_time,

backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ignore_errors = true
2424

2525
[tool.ruff]
2626
line-length = 130
27+
target-version = "py311"
2728

2829
[tool.ruff.lint]
2930
ignore = []

0 commit comments

Comments
 (0)