Skip to content

Commit

Permalink
Merge pull request #520 from DocNow/start-time-fix
Browse files Browse the repository at this point in the history
fix #519 progress bar start time
  • Loading branch information
edsu authored Aug 18, 2021
2 parents a48d955 + 586c5fd commit a61dba8
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 a61dba8

Please sign in to comment.