diff --git a/src/parser.nim b/src/parser.nim index b4cd614..9f44b14 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -46,7 +46,7 @@ proc parseGraphProfile*(js: JsonNode; username: string): Profile = let user = js{"data", "user", "legacy"} let id = js{"data", "user", "rest_id"}.getStr - parseProfile(user, id) + result = parseProfile(user, id) proc parseGraphList*(js: JsonNode): List = if js.isNull: return diff --git a/src/parserutils.nim b/src/parserutils.nim index 93d1d49..75d281d 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -15,7 +15,7 @@ template notNull*(js: JsonNode): bool = js.kind != JNull template `?`*(js: JsonNode): untyped = let j = js if j.isNull: return - else: j + j template `with`*(ident, value, body): untyped = block: