Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,8 +129,8 @@ def check_connected_users(username):
|
|
| 129 |
# Loop through all users that the target user is following
|
| 130 |
following = client.get_users_following(id=user_id, max_results=1000).data
|
| 131 |
# Only take at a maximum the last x following
|
| 132 |
-
if len(following) >=
|
| 133 |
-
following = following[:
|
| 134 |
|
| 135 |
for user in following:
|
| 136 |
success = False
|
|
|
|
| 129 |
# Loop through all users that the target user is following
|
| 130 |
following = client.get_users_following(id=user_id, max_results=1000).data
|
| 131 |
# Only take at a maximum the last x following
|
| 132 |
+
if len(following) >= 50:
|
| 133 |
+
following = following[:50]
|
| 134 |
|
| 135 |
for user in following:
|
| 136 |
success = False
|