Fix docstring for @scheduled_task decorator (#5626)

This commit is contained in:
Oliver 2023-09-30 07:01:04 +10:00 committed by GitHub
parent 240a2e91dd
commit d4f7e1130e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,8 +269,9 @@ def scheduled_task(interval: str, minutes: int = None, tasklist: TaskRegister =
Example:
```python
@register(ScheduledTask.DAILY)
def my_custom_funciton():
@scheduled_task(ScheduledTask.DAILY)
def my_custom_function():
# Perform a custom function once per day
...
```