Fix loopquery timing.
authorRadek Brich <radek.brich@devl.cz>
Wed, 13 Feb 2013 15:30:37 +0100
changeset 66 3cd28308d67b
parent 65 ea79c89e9517
child 67 78478a49c0bd
Fix loopquery timing.
loopquery.py
--- a/loopquery.py	Tue Feb 05 11:26:18 2013 +0100
+++ b/loopquery.py	Wed Feb 13 15:30:37 2013 +0100
@@ -65,7 +65,7 @@
     def reset(self):
         """Check current time, set next action time."""
         dt = datetime.today()
-        dt = dt.replace(second = 0, microsecond = 0)
+        dt = dt.replace(microsecond = 0)
         self.next_action_time = dt + timedelta(minutes = self.delay_mins,
                                                seconds = self.delay_secs)