Skip to content

Commit

Permalink
fix #519 progress bar start time
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrigadir committed Aug 17, 2021
1 parent a48d955 commit 586c5fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions twarc/command2.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ def _search(
# default number of tweets per response 500 when not set otherwise
if max_results == 0:
max_results = 100 # temp fix for #504

# start time defaults to the beginning of Twitter to override the
# default of the last month. Only do this if start_time is not already
# specified and since_id and until_id aren't being used
if start_time is None and since_id is None and until_id is None:
start_time = datetime.datetime(2006, 3, 21, tzinfo=datetime.timezone.utc)
else:
if max_results == 0:
max_results = 100
Expand Down

0 comments on commit 586c5fd

Please sign in to comment.