Loading ccserver/jobs.py +2 −2 Original line number Diff line number Diff line Loading @@ -132,14 +132,14 @@ class BaseJob(dict, Thread, object): self['done'] = True self['status'] = 'cancelling' def export(self): def export(self, props=None): ''' Export the job in a simple dict format. ''' exported = {} for key, val in self.iteritems(): if key.startswith('_'): if key.startswith('_') or (props is not None and key in props): continue if isinstance(val, datetime): now = datetime.now() Loading Loading
ccserver/jobs.py +2 −2 Original line number Diff line number Diff line Loading @@ -132,14 +132,14 @@ class BaseJob(dict, Thread, object): self['done'] = True self['status'] = 'cancelling' def export(self): def export(self, props=None): ''' Export the job in a simple dict format. ''' exported = {} for key, val in self.iteritems(): if key.startswith('_'): if key.startswith('_') or (props is not None and key in props): continue if isinstance(val, datetime): now = datetime.now() Loading