From 8315adeb4a2836c6e30f8967063f5965fa3dd69d Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 7 Feb 2025 11:46:33 -0300 Subject: [PATCH] fix(automatic-exchange-rates): 1-24 should be 0-23 --- app/apps/currencies/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/apps/currencies/models.py b/app/apps/currencies/models.py index 5123142..d58b9f4 100644 --- a/app/apps/currencies/models.py +++ b/app/apps/currencies/models.py @@ -204,11 +204,11 @@ class ExchangeRateService(models.Model): } ) hours = int(self.fetch_interval) - if hours < 1 or hours > 24: + if hours < 0 or hours > 23: raise ValidationError( { "fetch_interval": _( - "'Every X hours' interval must be between 1 and 24." + "'Every X hours' interval must be between 0 and 23." ) } )