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"])
|
||||
|
||||
# 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
|
||||
cmd = [
|
||||
"bird", "search",
|
||||
topic,
|
||||
"--since", from_date,
|
||||
query,
|
||||
"-n", str(count),
|
||||
"--json",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user