From 16df7573a321756e806d7ca2e5f0404fbe348efd Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 26 Sep 2024 11:31:08 +0330 Subject: [PATCH] fix: linter issues! --- .../src/db/discord/utils/transform_discord_raw_messges.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/hivemind_etl_helpers/src/db/discord/utils/transform_discord_raw_messges.py b/dags/hivemind_etl_helpers/src/db/discord/utils/transform_discord_raw_messges.py index 7a10f7a7..fbbd65b9 100644 --- a/dags/hivemind_etl_helpers/src/db/discord/utils/transform_discord_raw_messges.py +++ b/dags/hivemind_etl_helpers/src/db/discord/utils/transform_discord_raw_messges.py @@ -1,5 +1,5 @@ -import re import logging +import re from typing import Any from hivemind_etl_helpers.src.db.discord.utils.content_parser import ( @@ -211,7 +211,7 @@ def prepare_document( raise ValueError("Message just did have urls") # removing null characters - content_url_updated = re.sub(r'[\x00-\x1F\x7F]', '', content_url_updated) + content_url_updated = re.sub(r"[\x00-\x1F\x7F]", "", content_url_updated) doc: Document if not exclude_metadata: