Currently, we have this method in gui/dialog.py:
def _json_default(self, obj: Any) -> Any: if isinstance(obj, Action): return self._export_action(obj) if isinstance(obj, Engine): return self._export_engine(obj) if isinstance(obj, Notification): return self._export_notification(obj) if isinstance(obj, StateRow): return self._export_state(obj) if isinstance(obj, Worker): return self._export_worker(obj) return obj
Simply add the appropriate export() method to concerned objects.
- causes
-
NXDRIVE-1721 Fix get_timestamp_from_date() signature
- Resolved