mirror of
https://github.com/zoriya/Autopipe.git
synced 2025-12-06 02:56:09 +00:00
Fixing the coordinator selection
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
from autopipe import Coordinator
|
||||
from autopipe.input import RssInput
|
||||
|
||||
|
||||
class NotifyExample(Coordinator):
|
||||
def __init__(self, url, mapper):
|
||||
super().__init__()
|
||||
self.url = url
|
||||
self.mapper = mapper
|
||||
|
||||
@classmethod
|
||||
def name(cls):
|
||||
return "NotifyExample"
|
||||
|
||||
def get_input(self):
|
||||
return RssInput(self.url, self.mapper)
|
||||
|
||||
@@ -54,3 +54,9 @@ class Coordinator(ABC):
|
||||
@abstractmethod
|
||||
def name(cls):
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def get_input(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user