mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
parent
6b16ad2ce0
commit
ba57511a01
10 changed files with 43 additions and 21 deletions
|
|
@ -41,7 +41,8 @@ proc hasCachedProfile*(username: string): Option[Profile] =
|
|||
except AssertionError, KeyError:
|
||||
result = none Profile
|
||||
|
||||
proc getCachedProfile*(username, agent: string; force=false): Future[Profile] {.async.} =
|
||||
proc getCachedProfile*(username, agent: string;
|
||||
force=false): Future[Profile] {.async.} =
|
||||
withDb:
|
||||
try:
|
||||
result.getOne("lower(username) = ?", toLower(username))
|
||||
|
|
|
|||
Loading…
Reference in a new issue