mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🐛 — Fix websites frequency parsing
This commit is contained in:
parent
a4e6799fd0
commit
34dee83701
1 changed files with 2 additions and 2 deletions
|
@ -88,9 +88,9 @@ class Website(BaseModel):
|
|||
|
||||
@field_validator("frequency", mode="before")
|
||||
def parse_frequency(cls, value):
|
||||
"""Convert the configured frequency to hours"""
|
||||
"""Convert the configured frequency to minutes"""
|
||||
if value:
|
||||
return string_to_duration(value, "hours")
|
||||
return string_to_duration(value, "minutes")
|
||||
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue