1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-15 16:52:48 -05:00

Store profile usernames in lowercase for speedup

This commit is contained in:
Zed
2020-03-09 00:12:42 +01:00
parent a77c0f6a84
commit 5fc458638d
4 changed files with 19 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ dbTypes:
Profile* = object
username*: string
fullname*: string
lowername*: string
location*: string
website*: string
bio*: string
@@ -25,9 +26,9 @@ dbTypes:
verified*: bool
protected*: bool
joinDate* {.
dbType: "INTEGER"
parseIt: it.i.fromUnix()
formatIt: dbValue(it.toUnix())
dbType: "INTEGER"
parseIt: it.i.fromUnix()
formatIt: dbValue(it.toUnix())
.}: Time
updated* {.
dbType: "INTEGER"