Skip to content

Commit 7bde68e

Browse files
committed
better filtering
1 parent 26c7fe3 commit 7bde68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/event_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def _set_project_platform_if_needed(project: Project, event: Event) -> None:
721721
cache.set(cache_key, "1", 60 * 5)
722722

723723
if not project.platform:
724-
updated = Project.objects.filter(id=project.id, platform__isnull=True).update(
724+
updated = Project.objects.filter(id=project.id, platform__in=[None, ""]).update(
725725
platform=event.platform
726726
)
727727

0 commit comments

Comments
 (0)