Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
FIX: A few bugs in helper app
Browse files Browse the repository at this point in the history
  • Loading branch information
jshackles committed Jul 8, 2015
1 parent e694903 commit 5c0ef20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Idle Master Helper/idle-to-ready.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_blacklist():
try:
badge_text = badge.get_text()
dropCount = badge.find_all("span",{"class": "progress_info_bold"})[0].contents[0]
has_playtime = re.search("([0-1]\.[0-9]) hrs on record", badge_text) != None
has_playtime = re.search("hrs on record", badge_text) != None

if "No card drops" in dropCount :
continue
Expand All @@ -160,7 +160,7 @@ def get_blacklist():
else:
search_playtime = re.search("([0-1]\.[0-9]) hrs on record", badge_text)
playtime = search_playtime.group(1)
if playtime < 2:
if int(float(playtime)) < 2:
dropCountInt, junk = dropCount.split(" ",1)
dropCountInt = int(dropCountInt)
linkGuess = badge.find_parent().find_parent().find_parent().find_all("a")[0]["href"]
Expand Down
Binary file modified idle-to-ready.exe
Binary file not shown.

0 comments on commit 5c0ef20

Please sign in to comment.