Fix: embed date filter in query instead of --since flag
Bird CLI doesn't support --since as a CLI flag. Use X's search syntax: 'topic since:YYYY-MM-DD' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,11 +127,14 @@ def search_x(
|
|||||||
"""
|
"""
|
||||||
count = DEPTH_CONFIG.get(depth, DEPTH_CONFIG["default"])
|
count = DEPTH_CONFIG.get(depth, DEPTH_CONFIG["default"])
|
||||||
|
|
||||||
|
# Build query with date filter using X's search syntax
|
||||||
|
# Bird doesn't support --since flag, but X search accepts since:YYYY-MM-DD in query
|
||||||
|
query = f"{topic} since:{from_date}"
|
||||||
|
|
||||||
# Build command
|
# Build command
|
||||||
cmd = [
|
cmd = [
|
||||||
"bird", "search",
|
"bird", "search",
|
||||||
topic,
|
query,
|
||||||
"--since", from_date,
|
|
||||||
"-n", str(count),
|
"-n", str(count),
|
||||||
"--json",
|
"--json",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user