finish v3
This commit is contained in:
@@ -123,7 +123,8 @@ class DeckRepository {
|
||||
final db = await DatabaseHelper().db;
|
||||
final batch = db.batch();
|
||||
for (final item in items) {
|
||||
var where = '${DbConstants.kanjiIdColumn} = ? AND ${DbConstants.quizModeColumn} = ?';
|
||||
var where =
|
||||
'${DbConstants.kanjiIdColumn} = ? AND ${DbConstants.quizModeColumn} = ?';
|
||||
final whereArgs = [item.subjectId, item.quizMode.toString()];
|
||||
if (item.readingType != null) {
|
||||
where += ' AND ${DbConstants.readingTypeColumn} = ?';
|
||||
@@ -148,7 +149,8 @@ class DeckRepository {
|
||||
|
||||
Future<void> updateSrsItem(SrsItem item) async {
|
||||
final db = await DatabaseHelper().db;
|
||||
var where = '${DbConstants.kanjiIdColumn} = ? AND ${DbConstants.quizModeColumn} = ?';
|
||||
var where =
|
||||
'${DbConstants.kanjiIdColumn} = ? AND ${DbConstants.quizModeColumn} = ?';
|
||||
final whereArgs = [item.subjectId, item.quizMode.toString()];
|
||||
if (item.readingType != null) {
|
||||
where += ' AND ${DbConstants.readingTypeColumn} = ?';
|
||||
|
||||
Reference in New Issue
Block a user