|
@@ -128,9 +128,13 @@ def thread_panels(): |
|
|
#reps.sort() |
|
|
#reps.sort() |
|
|
#print '\n'.join(time.ctime(x) for x in reps) |
|
|
#print '\n'.join(time.ctime(x) for x in reps) |
|
|
|
|
|
|
|
|
lastrepdate = max(x['lastReportDate'] for x in r) |
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
lastrepdate = max(x['lastReportDate'] for x in r) |
|
|
|
|
|
|
|
|
|
|
|
waittotime = lastrepdate + 300 + 10 |
|
|
|
|
|
except ValueError: |
|
|
|
|
|
waittotime = 0 |
|
|
|
|
|
|
|
|
waittotime = lastrepdate + 300 + 10 |
|
|
|
|
|
curtime = time.time() |
|
|
curtime = time.time() |
|
|
|
|
|
|
|
|
if waittotime < curtime: |
|
|
if waittotime < curtime: |
|
|