mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Change ID types to int64
This commit is contained in:
parent
d6a2cd324f
commit
5576cbac8d
7 changed files with 19 additions and 19 deletions
|
|
@ -82,7 +82,7 @@ proc getTweetText*(tweet: XmlNode): string =
|
|||
|
||||
proc getTimestamp*(tweet: XmlNode): Time =
|
||||
let time = tweet.selectAttr(".js-short-timestamp", "data-time")
|
||||
fromUnix(if time.len > 0: parseInt(time) else: 0)
|
||||
fromUnix(if time.len > 0: parseBiggestInt(time) else: 0)
|
||||
|
||||
proc getShortTime*(tweet: XmlNode): string =
|
||||
tweet.selectText(".js-short-timestamp")
|
||||
|
|
@ -270,9 +270,9 @@ proc getTweetCard*(tweet: Tweet; node: XmlNode) =
|
|||
|
||||
tweet.card = some card
|
||||
|
||||
proc getMoreReplies*(node: XmlNode): int =
|
||||
proc getMoreReplies*(node: XmlNode): int64 =
|
||||
let text = node.innerText().strip()
|
||||
try:
|
||||
result = parseInt(text.split(" ")[0])
|
||||
result = parseBiggestInt(text.split(" ")[0])
|
||||
except:
|
||||
result = -1
|
||||
|
|
|
|||
Loading…
Reference in a new issue