latestTweets -> latest_tweets

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

No files matched your search

+1 -1
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
+1 -1
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