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