def delete_e(command, cursor, connection, tapi_name, parent_id, id_type): if (id_type == "date"): command[1] = get_date(command[1]) print((parent_id,command[1])) args = cursor.callproc(tapi_name+".del", (parent_id,command[1])) res = int(args[0]) connection.commit() notifiers.notify_delete(res)
def delete(command, cursor, connection): if len(command) >= 2: args = cursor.callproc('WORKERS_STATES_tapi.del', [command[1]]) res = args[0] connection.commit() notifiers.notify_delete(res)
def delete(command, cursor, connection): if len(command) >= 2: args = cursor.callproc('CONTACTS_tapi.del', [command[1]]) res = int(args[0]) connection.commit() notifiers.notify_delete(res)
def handle_delete(command, cursor, connection, tapi_name): if len(command) >= 2: args = cursor.callproc(tapi_name+".del", [command[1]]) res = int(args[0]) connection.commit() notifiers.notify_delete(res)
def delete(command, cursor, connection): if len(command) >= 2: res = cursor.callproc('POSITIONS_tapi.del', [command[1]]) connection.commit() notifiers.notify_delete(res)