aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2/resources.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/oauth2/resources.py')
-rw-r--r--gn2/wqflask/oauth2/resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/oauth2/resources.py b/gn2/wqflask/oauth2/resources.py
index 66545802..b8d804f9 100644
--- a/gn2/wqflask/oauth2/resources.py
+++ b/gn2/wqflask/oauth2/resources.py
@@ -173,7 +173,7 @@ def link_data_to_resource():
flash(f"Data linked to resource successfully", "alert-success")
return redirect(url_for(
"oauth2.resource.view_resource", resource_id=resource_id))
- return oauth2_post("auth/resource/data/link", data=dict(form)).either(
+ return oauth2_post("auth/resource/data/link", json=dict(form)).either(
__error__,
__success__)
except AssertionError as aserr:
@@ -202,7 +202,7 @@ def unlink_data_from_resource():
return redirect(url_for(
"oauth2.resource.view_resource", resource_id=resource_id))
return oauth2_post(
- "auth/resource/data/unlink", data=dict(form)).either(
+ "auth/resource/data/unlink", json=dict(form)).either(
__error__, __success__)
except AssertionError as aserr:
flash(aserr.args[0], "alert-danger")