Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
fixed tweet delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Jul 5, 2019
1 parent b86642d commit 3956754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xkcd_alt.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ def crash():
time.sleep(15)
else:
if new_tweet_check[1] is None: # Unverified new Tweet
new_tweet_check[1] = original_tweet
new_tweet_check[1]['id'] = original_tweet
print('Potential new {}. Waiting 5 seconds to verify...'.format(LOG_NAME))
time.sleep(5)
elif new_tweet_check[1] == original_tweet: # Confirmed new Tweet
elif new_tweet_check[1]['id'] == original_tweet: # Confirmed new Tweet
[body, num_tweets] = retrieve_text(original_tweet['entities']['urls'][URL_NUMBER]['expanded_url'])
if body == 'crash':
new_tweet_check = [0, None]
Expand Down

0 comments on commit 3956754

Please sign in to comment.