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." ) } )