Skip list request if ID is empty
This commit is contained in:
parent
5e0eb02422
commit
e3f6c72bf6
|
@ -22,6 +22,7 @@ proc getGraphListById*(id: string): Future[List] {.async.} =
|
|||
result = parseGraphList(js)
|
||||
|
||||
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
||||
if id.len == 0: return
|
||||
let
|
||||
ps = genParams({"list_id": id, "ranking_mode": "reverse_chronological"}, after)
|
||||
url = listTimeline ? ps
|
||||
|
|
Loading…
Reference in New Issue