Skip to content

Commit

Permalink
fix: a bug in twitter search skill
Browse files Browse the repository at this point in the history
  • Loading branch information
hyacinthus committed Jan 17, 2025
1 parent 6616dec commit 5b313e2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions skills/twitter/search_tweets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
from datetime import datetime, timedelta, timezone
from typing import Type

from pydantic import BaseModel, Field
Expand Down Expand Up @@ -71,11 +70,6 @@ def _run(
last = last or {}
since_id = last.get("since_id")

# Always get tweets for the last day
start_time = (datetime.now(tz=timezone.utc) - timedelta(days=1)).isoformat(
timespec="milliseconds"
)

tweet_fields = [
"created_at",
"author_id",
Expand All @@ -87,7 +81,6 @@ def _run(
query=query,
user_auth=self.twitter.use_key,
since_id=since_id,
start_time=start_time,
expansions=[
"referenced_tweets.id",
"attachments.media_keys",
Expand Down

0 comments on commit 5b313e2

Please sign in to comment.