mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-15 20:46:32 +00:00
Fix compilation error
This commit is contained in:
parent
c3d9441370
commit
12504bcffe
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ proc isLimited(account: GuestAccount; api: Api): bool =
|
||||||
|
|
||||||
if limit.limited and (epochTime().int - limit.limitedAt) > dayInSeconds:
|
if limit.limited and (epochTime().int - limit.limitedAt) > dayInSeconds:
|
||||||
account.apis[api].limited = false
|
account.apis[api].limited = false
|
||||||
log "resetting limit, api: ", api, ", id: ", account.id
|
log "resetting limit, api: " & $api & ", id: " & $account.id
|
||||||
|
|
||||||
return limit.limited or (limit.remaining <= 10 and limit.reset > epochTime().int)
|
return limit.limited or (limit.remaining <= 10 and limit.reset > epochTime().int)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue