Skip to content

Commit 64dfb7d

Browse files
ErethonRaitoBezarius
authored andcommitted
fix: Fix a bug in POST requests to suggestions
1 parent b5e37be commit 64dfb7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/website/webview/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,9 @@ def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse:
543543
new_status = request.POST.get("new_status")
544544
current_page = request.POST.get("page", "1")
545545
suggestion = get_object_or_404(CVEDerivationClusterProposal, id=suggestion_id)
546-
activity_log = SuggestionActivityLog().get_dict(suggestion_ids=[suggestion.pk])[
547-
suggestion.pk
548-
]
546+
activity_log = SuggestionActivityLog().get_dict(suggestion_ids=[suggestion.pk]).get(
547+
suggestion.pk, []
548+
)
549549
cached_suggestion = get_object_or_404(
550550
CachedSuggestions, proposal_id=suggestion_id
551551
)

0 commit comments

Comments
 (0)