Skip to content

Commit

Permalink
Fixed auctions not being parsed for daily rewards streaks over 1000.
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Sep 29, 2022
1 parent 87af435 commit 961cded
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .idea/runConfigurations/Tests_in_tibiakt_core.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.4.2 (2022-09-29)

- Fixed auctions not being parsed for daily rewards streaks over 1000.

## v0.4.1 (2022-09-28)

- Fixed incorrect URL building for forum sections.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public open class TibiaKtClient constructor(
method.value.uppercase(),
"${response.status.value} ${response.status.description}",
"${response.fetchingTimeMillis}ms"
).joinToString("| ")
).joinToString(" | ")
}
return response
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public object AuctionParser : Parser<Auction?> {
"Spent Charm Points" -> spentCharmPoints = value.parseInteger()
}
}
dailyRewardStreak = contentContainers[5].selectFirst("div")?.cleanText()?.toInt() ?: 0
dailyRewardStreak = contentContainers[5].selectFirst("div")?.cleanText()?.parseInteger() ?: 0
for (row in contentContainers[6].rows()) {
val (field, value) = getAuctionTableFieldValue(row)
when (field) {
Expand Down

0 comments on commit 961cded

Please sign in to comment.