mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-06 03:55:36 -05:00
9 lines
225 B
Nim
9 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)
|