File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11from __future__ import print_function
22import copy
3+ import datetime
34import importlib
45import json
56import logging
67import os
78import sys
89
9- from .serializing import SerializingObject
10+ from .serializing import SerializingObject , local_zone
1011
1112DATE_FORMAT = '%Y%m%dT%H%M%SZ'
1213REPR_OUTPUT_SIZE = 10
@@ -295,7 +296,10 @@ def deleted(self):
295296
296297 @property
297298 def waiting (self ):
298- return self ['status' ] == 'waiting'
299+ if not self ['wait' ]:
300+ return False
301+
302+ return self ['wait' ] > local_zone .localize (datetime .datetime .now ())
299303
300304 @property
301305 def pending (self ):
@@ -523,7 +527,7 @@ def deleted(self):
523527 return self .filter (status = DELETED )
524528
525529 def waiting (self ):
526- return self .filter (status = WAITING )
530+ return self .filter (wait__after = 'now' )
527531
528532 def recurring (self ):
529533 return self .filter (status = RECURRING )
You can’t perform that action at this time.
0 commit comments