mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-08 04:55:37 -05:00
Simplify db code
This commit is contained in:
@@ -7,7 +7,7 @@ type
|
||||
VideoType* = enum
|
||||
vmap, m3u8, mp4
|
||||
|
||||
db("cache.db", "", "", ""):
|
||||
dbTypes:
|
||||
type
|
||||
Profile* = object
|
||||
username*: string
|
||||
@@ -62,6 +62,9 @@ db("cache.db", "", "", ""):
|
||||
replaceYouTube*: string
|
||||
replaceTwitter*: string
|
||||
|
||||
|
||||
dbFromTypes("cache.db", "", "", "", [Profile, Video])
|
||||
|
||||
type
|
||||
QueryKind* = enum
|
||||
replies, media, multi, custom = "search"
|
||||
|
||||
Reference in New Issue
Block a user