Removed position change count from rank output.
This commit is contained in:
@@ -45,15 +45,17 @@ if response:
|
|||||||
if line == 1:
|
if line == 1:
|
||||||
overall_rank = match.text.lstrip()
|
overall_rank = match.text.lstrip()
|
||||||
if overall_rank[0] != "T" and overall_rank[0] != "0":
|
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)
|
print ("Overall Rank: " + overall_rank)
|
||||||
if line == 2:
|
if line == 2:
|
||||||
current_rank = match.text.lstrip()
|
current_rank = match.text.lstrip()
|
||||||
if current_rank[0] != "0":
|
if current_rank[0] != "0":
|
||||||
|
current_rank = current_rank.split('(')
|
||||||
|
current_rank = current_rank[0]
|
||||||
print ("Current Rank: " + current_rank)
|
print ("Current Rank: " + current_rank)
|
||||||
if line == 3:
|
if line == 3:
|
||||||
print()
|
print()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print('An error has occurred.')
|
print('An error has occured.')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user