From 69e13ac64ff51ad2b41a6c75e38bd2ae69cff928 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Thu, 10 Oct 2024 07:25:55 +0200 Subject: [PATCH] Fix comment position rebase offset --- api/src/reportcreator_api/pentests/serializers/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/reportcreator_api/pentests/serializers/project.py b/api/src/reportcreator_api/pentests/serializers/project.py index 5c894682e..b7ed593e4 100644 --- a/api/src/reportcreator_api/pentests/serializers/project.py +++ b/api/src/reportcreator_api/pentests/serializers/project.py @@ -121,7 +121,7 @@ def create(self, validated_data): text_range, version = rebase_selection( selection=text_range, over_events=CollabEvent.objects.filter(related_id=self.context['project'].id).filter(path=path_absolute), - version=int(version), + version=version, ) value = CollabStr(value) if text_range.empty or text_range.to > len(value):