From 424f31bf494a0b9b4e42bbd91985e1fb4ee460c1 Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Mon, 22 Jul 2024 11:51:15 -0400 Subject: [PATCH] ref: fix num_comments typing in migrations again --- .../migrations/0739_backfill_group_info_to_group_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/migrations/0739_backfill_group_info_to_group_attributes.py b/src/sentry/migrations/0739_backfill_group_info_to_group_attributes.py index ee5f93ee757637..94c36007a03f48 100644 --- a/src/sentry/migrations/0739_backfill_group_info_to_group_attributes.py +++ b/src/sentry/migrations/0739_backfill_group_info_to_group_attributes.py @@ -73,7 +73,7 @@ def _bulk_retrieve_group_values(group_ids: list[int], Group: type[Group]) -> lis status=group_values["status"], substatus=group_values["substatus"], first_seen=group_values["first_seen"], - num_comments=group_values["num_comments"], + num_comments=group_values["num_comments"] or 0, priority=group_values["priority"], first_release_id=(group_values["first_release"] or None), )