Skip to content
Open
Changes from all commits
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
3 changes: 2 additions & 1 deletion hearth.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,11 @@ def get_deck_metainfo(filtering=None,
count = pagecount * .1
print(count)

pagecount = math.ceil(count / DECKS_PER_PAGE)
pagecount = int(math.ceil(count / DECKS_PER_PAGE))

regex = re.compile('^\s*\/decks\/(\d+)')
output = []

for pagenum in range(1, pagecount+1): # Adding one as range is exclusive

# For each page, get a list of decks from all of the href attributes.
Expand Down