From 91aa5f578e871a7976ca0a861862f9b9dd162464 Mon Sep 17 00:00:00 2001 From: Ruben Vermeersch Date: Tue, 21 Sep 2021 19:37:40 +0200 Subject: [PATCH] Fix for since_id bug, closes #58 (#59) Fixes remaining instances of this bug --- twitter_to_sqlite/cli.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/twitter_to_sqlite/cli.py b/twitter_to_sqlite/cli.py index b7acc53..312c4b6 100644 --- a/twitter_to_sqlite/cli.py +++ b/twitter_to_sqlite/cli.py @@ -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( @@ -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( @@ -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( @@ -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: