Skip to content

Commit 78f95ec

Browse files
committed
Revert Match.displayable filter
1 parent e9d6aed commit 78f95ec

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: match/src/main/kotlin/dev/ricknout/rugbyranker/match/data/MatchRepository.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class MatchRepository(
6666
val response = service.getMatches(sports, states, startDate, endDate, sort, page, pageSize)
6767
val teamIds = dao.loadTeamIds(sport)
6868
val matches = MatchDataConverter.getMatchesFromResponse(response, sport, teamIds)
69-
.filter { match -> match.displayable }
7069
.map { match ->
7170
when (match.status) {
7271
Status.LIVE -> {
@@ -98,7 +97,7 @@ class MatchRepository(
9897
val response = service.getMatchSummary(id)
9998
val teamIds = dao.loadTeamIds(sport)
10099
val match = MatchDataConverter.getMatchFromResponse(response, sport, teamIds)
101-
match.displayable to match
100+
true to match
102101
} catch (e: Exception) {
103102
Log.e(TAG, e.toString())
104103
false to null

Diff for: match/src/main/kotlin/dev/ricknout/rugbyranker/match/model/Match.kt

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ data class Match(
3838
val half: Half?,
3939
val minute: Int?,
4040
) {
41-
val displayable: Boolean
42-
get() = numberOfRankedTeams >= 1
4341
val predictable: Boolean
4442
get() = numberOfRankedTeams == 2
4543

0 commit comments

Comments
 (0)