Commit 2c31fc23 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: disable API for get_last, use ssh task ls directly

API may return cached/stale results, causing gita add to target wrong task after gita new.
parent 0391f853
......@@ -61,7 +61,7 @@ get_task_number()
get_last()
{
local api_base user result
if api_base=$(_get_api_base) && user=$(_get_girar_user) ; then
if false && api_base=$(_get_api_base) && user=$(_get_girar_user) ; then
result=$(curl -sf "$api_base/tasks?user=$user&brief=true" 2>/dev/null | \
python3 -c 'import json,sys;t=json.load(sys.stdin);print(t[0] if t else "")' 2>/dev/null)
[ -n "$result" ] && echo "$result" && return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment