nostril

A C cli tool for creating nostr events
git clone git://jb55.com/nostril
Log | Files | Refs | Submodules | LICENSE

commit bac358b23661260d35f559c0a48ee23c81a8e5cc
parent 760d85250dc897a42e19e6af70bb8dd9edbdf36c
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 21 Nov 2022 16:28:48 -0800

nostril-query: fix limit:0 queries

Diffstat:
Mnostril-query | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/nostril-query b/nostril-query @@ -32,23 +32,23 @@ if args.authors: if args.ids: filt["ids"] = args.ids.split(",") -if args.limit: +if args.limit is not None: filt["limit"] = args.limit if args.generic: (tag, val) = args.generic filt["#" + tag] = val.split(",") -if args.hashtag: +if args.hashtag is not None: filt["#t"] = args.hashtag.split(",") -if args.mentions: +if args.mentions is not None: filt["#p"] = args.mentions.split(",") -if args.references: +if args.references is not None: filt["#e"] = args.references.split(",") -if args.kinds: +if args.kinds is not None: kinds = args.kinds.split(",") filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]