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

1.8.0

Compare
Choose a tag to compare
@jessicarod7 jessicarod7 released this 16 Apr 03:04
· 37 commits to master since this release
1.8.0
bb7cf1c

This update replaces the 1.7.0 duplicate Tweet fix with a more effective method. You will need to replace the Pipfile, Pipfile.lock, and requirements.txt files. Updates are as follows:

  • Remove lines 7-9.
  • Replace lines 75-100 (formerly 78-103):
            if alt_replies.index(comic['statuses'][0]['id']) is not ValueError:
                # This tweet has already been replied to
                del alt_payload, comic_payload, alt_raw, comic_raw, alt, comic
                return None # Sleep for 15 seconds
            else: # Supposedly valid Tweet
                return comic['statuses'][0] # Return comic Tweet
  • Add after line 106 (formerly line 128):
                if tweet.json()['errors'][0]['code'] == 187: # Duplicate Tweet
                    print('Duplicate Tweet detected, ending attempt.')
                    return None
  • Remove blank line 237 (formerly 257).