mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 09:38:35 +02:00
fix(automatic-exchange-rates): unable to set 24 hour interval
This commit is contained in:
@@ -206,11 +206,11 @@ class ExchangeRateService(models.Model):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
hours = int(self.fetch_interval)
|
hours = int(self.fetch_interval)
|
||||||
if hours < 0 or hours > 23:
|
if hours < 1 or hours > 24:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
{
|
{
|
||||||
"fetch_interval": _(
|
"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