6
0

JSONEncoder.py 341 B

1234567891011121314151617
  1. from typing import Any
  2. from flask.json import JSONEncoder as Base
  3. class JSONEncoder(Base):
  4. """
  5. prepares job objects to be json encoded
  6. """
  7. def default(self, o: Any) -> Any:
  8. # copy = o.__dict__.copy()
  9. # del copy['runner']
  10. # del copy['group']
  11. # return copy
  12. return o.__dict__.copy()