summaryrefslogtreecommitdiff
path: root/src/server/rz_api_rest.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-01-12 01:14:42 +0200
committerLV-426 <lv-426@taproot.org.il>2015-01-12 01:28:24 +0200
commitba8228ff3446729f9761b808ce8c1866bc0a6e68 (patch)
treea63f2b478ef4dfdda2ffa4e3bcefbab5289d1ac3 /src/server/rz_api_rest.py
parentbcc90ca12b0bb8a37a5ca6e1b72e6b4b629f0668 (diff)
rz_kernel: return: a tuple containing the input diff and the result of it's commit
Diffstat (limited to 'src/server/rz_api_rest.py')
-rw-r--r--src/server/rz_api_rest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/rz_api_rest.py b/src/server/rz_api_rest.py
index 4d0cbdc1..bad0cfa7 100644
--- a/src/server/rz_api_rest.py
+++ b/src/server/rz_api_rest.py
@@ -76,8 +76,8 @@ def diff_commit__topo():
try:
kernel = flask.current_app.kernel
- topo_diff = kernel.diff_commit__topo(topo_diff)
- return __common_resp_handle(data=topo_diff)
+ _, commit_ret = kernel.diff_commit__topo(topo_diff)
+ return __common_resp_handle(data=commit_ret)
except Exception as e:
log.error(e.message)
log.error(traceback.print_exc())
@@ -106,8 +106,8 @@ def diff_commit__attr():
try:
kernel = flask.current_app.kernel
- attr_diff = kernel.diff_commit__attr(attr_diff)
- return __common_resp_handle(data=attr_diff)
+ _, commit_ret = kernel.diff_commit__attr(attr_diff)
+ return __common_resp_handle(data=commit_ret)
except Exception as e:
log.error(e.message)
log.error(traceback.print_exc())