diff options
| author | 2019-10-08 12:20:08 +0100 | |
|---|---|---|
| committer | 2019-10-08 12:20:08 +0100 | |
| commit | 4c02c7c86ab5bfd522947155ed2b558b6f5c510e (patch) | |
| tree | cd7a7423b90a87d253088755d0d5d33f9b7b2f75 /src/Timers.py | |
| parent | only show youtu.be url when one was not provided (diff) | |
| signature | ||
refactor anything that effects event poll timeout in to PollHook objects
Diffstat (limited to 'src/Timers.py')
| -rw-r--r-- | src/Timers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Timers.py b/src/Timers.py index 8eff1013..e74d4a53 100644 --- a/src/Timers.py +++ b/src/Timers.py @@ -1,5 +1,5 @@ import time, typing, uuid -from src import Database, EventManager, Logging +from src import Database, EventManager, Logging, PollHook class Timer(object): def __init__(self, id: str, context: typing.Optional[str], name: str, @@ -32,7 +32,7 @@ class Timer(object): def done(self) -> bool: return self._done -class Timers(object): +class Timers(PollHook.PollHook): def __init__(self, database: Database.Database, events: EventManager.Events, log: Logging.Log): |
