Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Indentation issues #33

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix for total values not pulling correctly
Fix for issue #31
  • Loading branch information
Coffee-fueled-deadlines committed Dec 27, 2022
commit dfa9fcf146f82cae0f735a82a6a5695d73b2ce98
16 changes: 12 additions & 4 deletions OSRSBytes/Hiscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,19 @@ def __parseSkills(self):
subset = {}
# Totals
info = {}
info['rank'] = self.data[0]
info['level'] = self.data[1]
info['experience'] = self.data[2]

# Split data into lists
for value in self.data.split(" "):
total_info = value.split(",")

# assign into dictionary
info['rank'] = total_info[0]
info['level'] = total_info[1]
info['experience'] = total_info[2]
break

subset['total'] = info

self.__skills = [
'attack',
'defense',
Expand Down