latestTweets -> latest_tweets

This commit is contained in:
Dylan 2025-04-27 17:35:19 +01:00
parent f48a9b205d
commit 9ea320eb9c
2 changed files with 2 additions and 2 deletions

View File

@ -48,4 +48,4 @@ def test_api_user_feed():
jData = resp.get_json()
assert resp.status_code==200
assert jData["screen_name"]=="jack"
assert len(jData["latestTweets"])>0
assert len(jData["latest_tweets"])>0

View File

@ -299,7 +299,7 @@ def getUserData(twitter_url,includeFeed=False):
apiFeed = []
for tweet in feed:
apiFeed.append(getApiResponse(tweet))
userData['latestTweets'] = apiFeed
userData['latest_tweets'] = apiFeed
return userData