|
@@ -180,8 +180,8 @@ def leaderboard():
|
|
response = client_request('leaderboard', {"session_id": connection.session_id})
|
|
response = client_request('leaderboard', {"session_id": connection.session_id})
|
|
success = 'data' in response
|
|
success = 'data' in response
|
|
if success:
|
|
if success:
|
|
- print(_my_tabulate(response['data'], headers=['User', 'Wealth'], tablefmt="pipe"))
|
|
|
|
- print('Remember that the goal is to be as rich as possible, not to be richer than other traders!')
|
|
|
|
|
|
+ print(_my_tabulate(response['data'], headers=['Trader', 'Wealth'], tablefmt="pipe"))
|
|
|
|
+ # print('Remember that the goal is to be as rich as possible, not to be richer than other traders!')
|
|
else:
|
|
else:
|
|
if 'error_message' in response:
|
|
if 'error_message' in response:
|
|
print('Leaderboard access failed with message:', response['error_message'])
|
|
print('Leaderboard access failed with message:', response['error_message'])
|