mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[Home/Grades] Remove filtering grades by semester.
This commit is contained in:
parent
111d040cf9
commit
d5ae4b7ec9
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user