def map_item(self, ref=None): if isinstance(ref, OxTask): return { 'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.timestamp } else: return Sync.map_item(self, ref)
def map_item(self, ref=None): if isinstance(ref, ToodledoTask): # return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.modified * 1000} return { 'id': ref._id, 'key': ref[self._key_attribute], 'time': ref._time } else: return Sync.map_item(self, ref)
def map_item(self, ref=None): if isinstance(ref, OxTask): return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.timestamp} else: return Sync.map_item(self, ref)
def map_item(self, ref=None): if isinstance(ref, ToodledoTask): # return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.modified * 1000} return {'id': ref._id, 'key': ref[self._key_attribute], 'time': ref._time} else: return Sync.map_item(self, ref)