1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-29 06:42:50 -05:00

Add server config file

This commit is contained in:
Zed
2019-07-31 02:15:43 +02:00
parent b10d894a11
commit 6a9d182249
8 changed files with 53 additions and 23 deletions

View File

@@ -26,3 +26,6 @@ proc getCachedProfile*(username: string; force=false): Future[Profile] {.async.}
result = await getProfile(username)
if result.username.len > 0:
result.insert()
proc setProfileCacheTime*(minutes: int) =
profileCacheTime = initDuration(minutes=minutes)