Skip to content

Commit

Permalink
Fix for since_id bug, closes #58 (#59)
Browse files Browse the repository at this point in the history
Fixes remaining instances of this bug
  • Loading branch information
rubenv committed Sep 21, 2021
1 parent 7472619 commit 91aa5f5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions twitter_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,9 @@ def user_timeline(
@click.option(
"--since",
is_flag=True,
default=False,
help="Pull tweets since last retrieved tweet",
)
@click.option(
"--since_id", type=str, default=False, help="Pull tweets since this Tweet ID"
)
@click.option("--since_id", type=str, help="Pull tweets since this Tweet ID")
def home_timeline(db_path, auth, since, since_id):
"Save tweets from timeline for authenticated user"
_shared_timeline(
Expand Down Expand Up @@ -371,12 +368,9 @@ def home_timeline(db_path, auth, since, since_id):
@click.option(
"--since",
is_flag=True,
default=False,
help="Pull tweets since last retrieved mention",
)
@click.option(
"--since_id", type=str, default=False, help="Pull mentions since this Tweet ID"
)
@click.option("--since_id", type=str, help="Pull mentions since this Tweet ID")
def mentions_timeline(db_path, auth, since, since_id):
"Save tweets that mention the authenticated user"
_shared_timeline(
Expand Down Expand Up @@ -790,7 +784,6 @@ def import_(db_path, paths):
@click.option(
"--since",
is_flag=True,
default=False,
help="Pull tweets since last retrieved tweet",
)
@click.option(
Expand All @@ -803,9 +796,7 @@ def import_(db_path, paths):
@click.option("--result_type", type=click.Choice(["mixed", "recent", "popular"]))
@click.option("--count", type=int, default=100, help="Number of results per page")
@click.option("--stop_after", type=int, help="Stop after this many")
@click.option(
"--since_id", type=str, default=False, help="Pull tweets since this Tweet ID"
)
@click.option("--since_id", type=str, help="Pull tweets since this Tweet ID")
def search(db_path, q, auth, since, **kwargs):
"""
Save tweets from a search. Full documentation here:
Expand Down

0 comments on commit 91aa5f5

Please sign in to comment.