1
0
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:
Zed
2019-09-08 12:22:52 +02:00
parent c7a2387aeb
commit d7e0fa6059
6 changed files with 21 additions and 15 deletions

View File

@@ -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"