diff --git a/app/src/main/kotlin/jackall/moncalc/db/QuestRecordRealmHelper.kt b/app/src/main/kotlin/jackall/moncalc/db/QuestRecordRealmHelper.kt index 1ba47f1..89aedd1 100644 --- a/app/src/main/kotlin/jackall/moncalc/db/QuestRecordRealmHelper.kt +++ b/app/src/main/kotlin/jackall/moncalc/db/QuestRecordRealmHelper.kt @@ -60,6 +60,6 @@ } fun getSpecialPercent(templeId: Int): Float { - return (realm.where(QuestRecord::class.java).equalTo("attribute", templeId).sum("specialCount").toFloat() / realm.where(QuestRecord::class.java).sum("dropCount").toFloat()) * 100 + return (realm.where(QuestRecord::class.java).equalTo("templeId", templeId).sum("specialCount").toFloat() / realm.where(QuestRecord::class.java).equalTo("templeId",templeId).sum("dropCount").toFloat()) * 100 } } \ No newline at end of file