Skip to content

Commit

Permalink
#1 avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobiform committed Apr 17, 2024
1 parent a7d83ab commit 4e18dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def get_graph(graph_data):
async def generate_graph_data(user, followers, followings):
# Add the authenticated user as the central node
nodes = [{'id': user['id'], 'username': user['username']}]
nodes += [{'id': u['id'], 'username': u['username']} for u in followers + followings]
nodes += [{'id': u['id'], 'username': u['username'], 'avatar': u['avatar']} for u in followers + followings]

# Create links from the central user to each follower and following
links = [{'source': user['id'], 'target': follower['id']} for follower in followers]
Expand Down

0 comments on commit 4e18dc4

Please sign in to comment.