mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-18 06:38:44 +01:00
fix(automatic-exchange-rates): unable to set 24 hour interval
This commit is contained in:
1 parent
d3ea0e43da
commit
5a93a907e1
1 file changed
+2
-2
@@ -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."
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user