Skip to content

Commit

Permalink
add leeway to taken at in future
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Sep 26, 2024
1 parent 11b62ee commit f2ccef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/api/serializers/daily_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def validate(self, attrs):
return validated

def validate_taken_at(self, value):
if value and value > timezone.now():
if value and value > timezone.now() + timedelta(minutes=2):
msg = "Cannot create an update in the future"
raise serializers.ValidationError(msg)
return value

0 comments on commit f2ccef1

Please sign in to comment.