소스 검색

improve leaderboard

Eren Yilmaz 6 년 전
부모
커밋
fb2441ae5c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client_controller.py

+ 2 - 2
client_controller.py

@@ -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'])