Skip to content

Commit

Permalink
akka-loader: fix counts difference
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackmorse committed Mar 25, 2024
1 parent feb1cac commit 3eaaffe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class HattidClickhouseClient @Inject()(val config: Config,
val countPreviousFuture = client.query(s"select count() from $databaseName.match_details where season = $previousSeason and " +
s"round = $previousRound and league_id = ${league.leagueId} and $cupLevelIndexCondition")
val countPrevious = Await.result(countPreviousFuture, 30.seconds).trim.replace("\n", "").replace("\r", "")
if (count.toLong / 5 > countPrevious.toLong) {
if (countPrevious.toLong / 5 > count.toLong) {
logger.info(s"Previous count: $countPrevious, current count: $count for ${league.leagueId} (${league.leagueName}) " +
s" Not marking as uploaded")
return Future(())
Expand Down

0 comments on commit 3eaaffe

Please sign in to comment.