Deletion operations return 204

This commit is contained in:
Juan Ignacio Sánchez Lara 2015-09-09 12:24:54 +02:00
parent f70fd1a4c7
commit 206cee1647

View File

@ -33,7 +33,7 @@ $$
url = '/api/v1/databases/{0}/groups/%s' % (urllib.pathname2url(group_name)) url = '/api/v1/databases/{0}/groups/%s' % (urllib.pathname2url(group_name))
query = "select cartodb._CDB_Group_API_Request('DELETE', '%s', '', '{200, 404}') as response_status" % url query = "select cartodb._CDB_Group_API_Request('DELETE', '%s', '', '{204, 404}') as response_status" % url
plpy.execute(query) plpy.execute(query)
$$ LANGUAGE 'plpythonu' VOLATILE SECURITY DEFINER; $$ LANGUAGE 'plpythonu' VOLATILE SECURITY DEFINER;