|
|
|
@ -126,7 +126,7 @@ def get_reference_date(): |
|
|
|
|
|
|
|
|
|
|
|
def generate_engagement_tweet(author): |
|
|
|
def generate_engagement_tweet(author): |
|
|
|
"""Generate an engagement tweet using author background themes.""" |
|
|
|
"""Generate an engagement tweet using author background themes.""" |
|
|
|
credentials = next((cred for cred in X_API_CREDENTIALS if cred["username"] == author["username"]), None) |
|
|
|
credentials = X_API_CREDENTIALS.get(author["username"]) |
|
|
|
if not credentials: |
|
|
|
if not credentials: |
|
|
|
logging.error(f"No X credentials found for {author['username']}") |
|
|
|
logging.error(f"No X credentials found for {author['username']}") |
|
|
|
return None |
|
|
|
return None |
|
|
|
|