Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in documentation section Background task #3

Open
JamFfm opened this issue Jul 25, 2017 · 0 comments
Open

Fix in documentation section Background task #3

JamFfm opened this issue Jul 25, 2017 · 0 comments

Comments

@JamFfm
Copy link

JamFfm commented Jul 25, 2017

As we already had an non working addon because of this I would like to add a Point to the docu.

Custom Background Task:

from modules import cbpi,

@cbpi.backgroundtask(key="my_task", interval=1)
def my_custom_background_task():
# YOUR CODE GOES HERE
pass

The line
def my_custom_background_task():
should be changed in
def my_custom_background_task(self):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant