From 5a93a907e12957346ac415fc875c0924e033fe2a Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 1 Mar 2025 23:04:46 -0300 Subject: [PATCH] fix(automatic-exchange-rates): unable to set 24 hour interval --- 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 e91ef48..e4f3281 100644 --- a/app/apps/currencies/models.py +++ b/app/apps/currencies/models.py @@ -206,11 +206,11 @@ class ExchangeRateService(models.Model): } ) hours = int(self.fetch_interval) - if hours < 0 or hours > 23: + if hours < 1 or hours > 24: raise ValidationError( { "fetch_interval": _( - "'Every X hours' interval must be between 0 and 23." + "'Every X hours' interval must be between 1 and 24." ) } )