mirror of
https://github.com/zedeus/nitter
synced 2026-10-26 20:53:25 +00:00
8 lines
225 B
Nim
8 lines
225 B
Nim
import jsony
|
|
import ../types/tid
|
|
export TidPair
|
|
|
|
proc parseTidPairs*(raw: string): seq[TidPair] =
|
|
result = raw.fromJson(seq[TidPair])
|
|
if result.len == 0:
|
|
raise newException(ValueError, "Parsing pairs failed: " & raw)
|