diff options
author | 2025-02-08 12:54:33 -0500 | |
---|---|---|
committer | 2025-02-08 12:54:33 -0500 | |
commit | ceffc88981fc9c938f7d16c625a1a31e01a5e054 (patch) | |
tree | dd21375a5107d0935faa460c931c324fc763daa3 | |
parent | Change indentation of lines in docstring. (diff) |
`and` -> `or`
-rw-r--r-- | bot/exts/filtering/filtering.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py index 0d07bfebc..01eba6afc 100644 --- a/bot/exts/filtering/filtering.py +++ b/bot/exts/filtering/filtering.py @@ -67,7 +67,7 @@ WEEKLY_REPORT_ISO_DAY = 3 # 1=Monday, 7=Sunday async def _extract_text_file_content(att: discord.Attachment) -> str: - """Extract up to the first 30 lines and first 2000 characters (whichever is shorter) of an attachment.""" + """Extract up to the first 30 lines or first 2000 characters (whichever is shorter) of an attachment.""" file_encoding = re.search(r"charset=(\S+)", att.content_type).group(1) file_content_bytes = await att.read() file_lines = file_content_bytes.decode(file_encoding).splitlines() |