[core] Move "every" to decorators module
This commit is contained in:
parent
11ebcee29a
commit
c625baa47a
3 changed files with 11 additions and 10 deletions
|
@ -6,9 +6,10 @@ import platform
|
|||
|
||||
import core.module
|
||||
import core.widget
|
||||
import core.decorators
|
||||
|
||||
class Module(core.module.Module):
|
||||
@core.module.every(minutes=60)
|
||||
@core.decorators.every(minutes=60)
|
||||
def __init__(self, config):
|
||||
super().__init__(config, core.widget.Widget(self.full_text))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue