From a57add01a85dfa174f12f4e0d28b5986b267bfe9 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Fri, 10 May 2024 18:07:16 +0530 Subject: [PATCH] fixes review_interval not being updated for "no review" --- care/facility/api/serializers/daily_round.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/facility/api/serializers/daily_round.py b/care/facility/api/serializers/daily_round.py index 3f14980056..5b9a005f0d 100644 --- a/care/facility/api/serializers/daily_round.py +++ b/care/facility/api/serializers/daily_round.py @@ -268,8 +268,8 @@ def create(self, validated_data): review_interval = validated_data.pop( "consultation__review_interval" ) + validated_data["consultation"].review_interval = review_interval if review_interval >= 0: - validated_data["consultation"].review_interval = review_interval patient.review_time = localtime(now()) + timedelta( minutes=review_interval )