equal
deleted
inserted
replaced
63 self.action() |
63 self.action() |
64 |
64 |
65 def reset(self): |
65 def reset(self): |
66 """Check current time, set next action time.""" |
66 """Check current time, set next action time.""" |
67 dt = datetime.today() |
67 dt = datetime.today() |
68 dt = dt.replace(second = 0, microsecond = 0) |
68 dt = dt.replace(microsecond = 0) |
69 self.next_action_time = dt + timedelta(minutes = self.delay_mins, |
69 self.next_action_time = dt + timedelta(minutes = self.delay_mins, |
70 seconds = self.delay_secs) |
70 seconds = self.delay_secs) |
71 |
71 |
72 def wait(self): |
72 def wait(self): |
73 """Wait for action time, compute next action time.""" |
73 """Wait for action time, compute next action time.""" |