[Home/Grades] Remove filtering grades by semester.

This commit is contained in:
Kuba Szczodrzyński 2020-01-20 19:30:20 +01:00
parent 111d040cf9
commit d5ae4b7ec9
2 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ public abstract class GradeDao {
}
}
public LiveData<List<GradeFull>> getAllFromDate(int profileId, int semester, long date) {
return getAllWhere(profileId, "gradeSemester = " + semester + " AND addedDate > " + date);
public LiveData<List<GradeFull>> getAllFromDate(int profileId, long date) {
return getAllWhere(profileId, "addedDate > " + date);
}
}

View File

@ -69,7 +69,7 @@ class HomeGradesCard(
val sevenDaysAgo = System.currentTimeMillis() - 7 * 24 * 60 * 60 * 1000
app.db.gradeDao().getAllFromDate(profile.id, profile.currentSemester, sevenDaysAgo).observe(fragment, Observer {
app.db.gradeDao().getAllFromDate(profile.id, sevenDaysAgo).observe(fragment, Observer {
grades.apply {
clear()
addAll(it)