mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 16:29:06 -05:00
nostril-query: fix limit:0 queries
This commit is contained in:
parent
760d85250d
commit
bac358b236
|
@ -32,23 +32,23 @@ if args.authors:
|
||||||
if args.ids:
|
if args.ids:
|
||||||
filt["ids"] = args.ids.split(",")
|
filt["ids"] = args.ids.split(",")
|
||||||
|
|
||||||
if args.limit:
|
if args.limit is not None:
|
||||||
filt["limit"] = args.limit
|
filt["limit"] = args.limit
|
||||||
|
|
||||||
if args.generic:
|
if args.generic:
|
||||||
(tag, val) = args.generic
|
(tag, val) = args.generic
|
||||||
filt["#" + tag] = val.split(",")
|
filt["#" + tag] = val.split(",")
|
||||||
|
|
||||||
if args.hashtag:
|
if args.hashtag is not None:
|
||||||
filt["#t"] = args.hashtag.split(",")
|
filt["#t"] = args.hashtag.split(",")
|
||||||
|
|
||||||
if args.mentions:
|
if args.mentions is not None:
|
||||||
filt["#p"] = args.mentions.split(",")
|
filt["#p"] = args.mentions.split(",")
|
||||||
|
|
||||||
if args.references:
|
if args.references is not None:
|
||||||
filt["#e"] = args.references.split(",")
|
filt["#e"] = args.references.split(",")
|
||||||
|
|
||||||
if args.kinds:
|
if args.kinds is not None:
|
||||||
kinds = args.kinds.split(",")
|
kinds = args.kinds.split(",")
|
||||||
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user