X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=portal%2Factions.py;h=f935ada7521e9c4fbf99873923b503b663b906bc;hp=3ee568c59c09dc0c067569f865728fa99913f2c9;hb=74559bc02e54d941489bc789f9337cd9ef7187d7;hpb=894b9a1348c702630c1f11edd3364d646174b62b diff --git a/portal/actions.py b/portal/actions.py index 3ee568c5..f935ada7 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -113,7 +113,7 @@ def manifold_add_account(request, account_params): def manifold_update_account(request,account_params): # account_params: config query = Query.update('local:account').filter_by('platform', '==', 'myslice').set(account_params).select('user_id') - results = execute_query(request,query) + results = execute_admin_query(request,query) # NOTE: results remains empty and goes to Exception. However, it updates the manifold DB. # That's why I commented the exception part. -- Yasin #if not results: @@ -124,7 +124,7 @@ def manifold_update_account(request,account_params): #explicitly mention the platform_id def manifold_delete_account(request, platform_id, account_params): query = Query.delete('local:account').filter_by('platform_id', '==', platform_id).set(account_params).select('user_id') - results = execute_query(request,query) + results = execute_admin_query(request,query) return results