mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 08:19:08 -05:00
query: add search param
This commit is contained in:
parent
9199027424
commit
077b143614
|
@ -12,6 +12,7 @@ parser.add_argument('-d', '--parameter')
|
|||
parser.add_argument('-t', '--hashtag')
|
||||
parser.add_argument('-i', '--ids')
|
||||
parser.add_argument('-k', '--kinds')
|
||||
parser.add_argument('-s', '--search')
|
||||
parser.add_argument('-g',
|
||||
'--generic',
|
||||
nargs=2,
|
||||
|
@ -40,6 +41,9 @@ if args.generic:
|
|||
(tag, val) = args.generic
|
||||
filt["#" + tag] = val.split(",")
|
||||
|
||||
if args.search:
|
||||
filt["search"] = args.search
|
||||
|
||||
if args.hashtag is not None:
|
||||
filt["#t"] = args.hashtag.split(",")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user