mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-05 08:10:30 +00:00
refac
This commit is contained in:
parent
9f680bb80b
commit
fd679e1dac
1 changed files with 1 additions and 0 deletions
|
|
@ -185,6 +185,7 @@ def rrule_interval_seconds(s: str) -> Optional[int]:
|
|||
"""
|
||||
if 'COUNT=1' in s:
|
||||
return None
|
||||
s = '\n'.join(line for line in s.splitlines() if not line.upper().startswith('DTSTART')) or s
|
||||
now = datetime.now()
|
||||
rule = _parse_rule(s, now)
|
||||
first = rule.after(now)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue