def create(device, asin, kind, timestamp, begin, end, position, state, text = None): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) end = int(end) position = int(position) if position else begin state = _bin(state) db.create(device.serial, asin, kind, timestamp, begin, end, position, state, text)
def create(device, asin, kind, timestamp, begin, end, position, state, text=None): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) end = int(end) position = int(position) if position else begin state = _bin(state) db.create(device.serial, asin, kind, timestamp, begin, end, position, state, text)
def modify(device, asin, kind, timestamp, begin, end, text = None): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) end = int(end) db.modify(device.serial, asin, kind, timestamp, begin, end, text)
def delete(device, asin, kind, timestamp, begin, end): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) end = int(end) db.delete(device.serial, asin, kind, timestamp, begin, end)
def set_last_read(device, asin, timestamp, begin, position, state): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) position = int(position) if position else begin state = _bin(state) db.set_last_read(device.serial, asin, timestamp, begin, position, state)
def modify(device, asin, kind, timestamp, begin, end, text=None): timestamp = _parse_timestamp(timestamp, device.lto) begin = int(begin) end = int(end) db.modify(device.serial, asin, kind, timestamp, begin, end, text)