mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 05:38:55 +00:00
fix armoire count
This commit is contained in:
parent
dd5c750c33
commit
16ed0bed07
1 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,14 @@ public class RealmInventoryLocalRepository extends RealmContentLocalRepository i
|
|||
|
||||
@Override
|
||||
public long getArmoireRemainingCount() {
|
||||
return 0;
|
||||
return realm.where(Equipment.class)
|
||||
.equalTo("klass", "armoire")
|
||||
.beginGroup()
|
||||
.equalTo("owned", false)
|
||||
.or()
|
||||
.isNull("owned")
|
||||
.endGroup()
|
||||
.count();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue