CC-3601: Pypo schedule needs to be sorted before pushing

-fixed
This commit is contained in:
Martin Konecny 2012-04-04 15:25:57 -04:00
parent 5737053561
commit d9d8211a3b
1 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,9 @@ class PypoPush(Thread):
tcoming = time.gmtime(timenow + self.push_ahead)
str_tnow_s = "%04d-%02d-%02d-%02d-%02d-%02d" % (tnow[0], tnow[1], tnow[2], tnow[3], tnow[4], tnow[5])
str_tcoming_s = "%04d-%02d-%02d-%02d-%02d-%02d" % (tcoming[0], tcoming[1], tcoming[2], tcoming[3], tcoming[4], tcoming[5])
for pkey in schedule:
sorted_schedule = sorted(schedule.keys())
for pkey in sorted_schedule:
plstart = schedule[pkey]['start'][0:19]
if str_tnow_s <= plstart and plstart < str_tcoming_s: