From 0fed72d38335d4b3f304f45f7c0c0aeeef58b060 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 16 Dec 2024 10:46:55 +0330 Subject: [PATCH] feat: handling data inconsistency! --- dags/analyzer_helper/discourse/transform_raw_members.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/analyzer_helper/discourse/transform_raw_members.py b/dags/analyzer_helper/discourse/transform_raw_members.py index f1bff0b5..0abce570 100644 --- a/dags/analyzer_helper/discourse/transform_raw_members.py +++ b/dags/analyzer_helper/discourse/transform_raw_members.py @@ -53,7 +53,7 @@ def transform_member(self, member: dict) -> dict: "left_at": None, "joined_at": self.converter.from_date_string(member.get("joined_at")), "options": { - "name": member["name"], + "name": member["name"] if member["name"] is not "null" else None, "username": member["username"], "avatar": avatar, },