Update norm
This commit is contained in:
parent
13b75a6954
commit
6a7a65e16b
2 changed files with 12 additions and 12 deletions
|
@ -11,7 +11,7 @@ bin = @["nitter"]
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 0.19.9"
|
requires "nim >= 0.19.9"
|
||||||
requires "norm <= 1.0.11"
|
requires "norm >= 1.0.13"
|
||||||
requires "jester >= 0.4.3"
|
requires "jester >= 0.4.3"
|
||||||
requires "regex >= 0.11.2"
|
requires "regex >= 0.11.2"
|
||||||
requires "q >= 0.0.7"
|
requires "q >= 0.0.7"
|
||||||
|
|
|
@ -22,17 +22,17 @@ db("cache.db", "", "", ""):
|
||||||
tweets*: string
|
tweets*: string
|
||||||
likes*: string
|
likes*: string
|
||||||
media*: string
|
media*: string
|
||||||
verified* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
verified*: bool
|
||||||
protected* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
protected*: bool
|
||||||
joinDate* {.
|
joinDate* {.
|
||||||
dbType: "INTEGER"
|
dbType: "INTEGER"
|
||||||
parseIt: it.i.fromUnix()
|
parseIt: it.i.fromUnix()
|
||||||
formatIt: it.toUnix()
|
formatIt: dbValue(it.toUnix())
|
||||||
.}: Time
|
.}: Time
|
||||||
updated* {.
|
updated* {.
|
||||||
dbType: "INTEGER"
|
dbType: "INTEGER"
|
||||||
parseIt: it.i.fromUnix()
|
parseIt: it.i.fromUnix()
|
||||||
formatIt: getTime().toUnix()
|
formatIt: dbValue(getTime().toUnix())
|
||||||
.}: Time
|
.}: Time
|
||||||
|
|
||||||
Video* = object
|
Video* = object
|
||||||
|
@ -42,19 +42,19 @@ db("cache.db", "", "", ""):
|
||||||
url*: string
|
url*: string
|
||||||
thumb*: string
|
thumb*: string
|
||||||
views*: string
|
views*: string
|
||||||
|
available*: bool
|
||||||
playbackType* {.
|
playbackType* {.
|
||||||
dbType: "STRING"
|
dbType: "STRING"
|
||||||
parseIt: parseEnum[VideoType](it.s)
|
parseIt: parseEnum[VideoType](it.s)
|
||||||
formatIt: $it
|
formatIt: dbValue($it)
|
||||||
.}: VideoType
|
.}: VideoType
|
||||||
available* {.dbType: "STRING", parseIt: parseBool(it.s) formatIt: $it.}: bool
|
|
||||||
|
|
||||||
Prefs* = object
|
Prefs* = object
|
||||||
videoPlayback* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
videoPlayback*: bool
|
||||||
autoplayGifs* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
autoplayGifs*: bool
|
||||||
hideTweetStats* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
hideTweetStats*: bool
|
||||||
hideBanner* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
hideBanner*: bool
|
||||||
stickyProfile* {.dbType: "STRING", parseIt: parseBool(it.s), formatIt: $it.}: bool
|
stickyProfile*: bool
|
||||||
replaceYouTube*: string
|
replaceYouTube*: string
|
||||||
replaceTwitter*: string
|
replaceTwitter*: string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue