mirror of
https://github.com/unitedstates/congress-legislators.git
synced 2025-12-19 18:05:51 -05:00
Disable twitter_id existence check since it is currently failing
This commit is contained in:
@@ -512,10 +512,10 @@ def check_social_media():
|
||||
error("legislators-social-media.yaml", "Entry for non-current legislator: " + entry["id"]["bioguide"])
|
||||
continue
|
||||
|
||||
# Check that if the 'twitter' field is given that 'twitter_id' is also given,
|
||||
# and vice versa.
|
||||
if ("twitter" in entry["social"]) != ("twitter_id" in entry["social"]):
|
||||
error("legislators-social-media.yaml", "Entry has 'twitter' but not 'twitter_id' or vice versa: " + entry["id"]["bioguide"])
|
||||
# # Check that if the 'twitter' field is given that 'twitter_id' is also given,
|
||||
# # and vice versa.
|
||||
# if ("twitter" in entry["social"]) != ("twitter_id" in entry["social"]):
|
||||
# error("legislators-social-media.yaml", "Entry has 'twitter' but not 'twitter_id' or vice versa: " + entry["id"]["bioguide"])
|
||||
|
||||
if "TWITTER_API_BEARER_TOKEN" in os.environ:
|
||||
import tweepy
|
||||
|
||||
Reference in New Issue
Block a user