From 67f6b37b5aa86bad91eb4106d004e0a224a674ce Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Mon, 6 Sep 2021 17:02:31 -0700 Subject: [PATCH] Removed position change count from rank output. --- distributednet-stats.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/distributednet-stats.py b/distributednet-stats.py index c197eff..ad255d2 100644 --- a/distributednet-stats.py +++ b/distributednet-stats.py @@ -45,15 +45,17 @@ if response: if line == 1: overall_rank = match.text.lstrip() if overall_rank[0] != "T" and overall_rank[0] != "0": + overall_rank = overall_rank.split('(') + overall_rank = overall_rank[0] print ("Overall Rank: " + overall_rank) if line == 2: current_rank = match.text.lstrip() if current_rank[0] != "0": + current_rank = current_rank.split('(') + current_rank = current_rank[0] print ("Current Rank: " + current_rank) if line == 3: print() break else: - print('An error has occurred.') - - + print('An error has occured.')