lot of things done, like custom lesson things

This commit is contained in:
Kima
2024-03-28 22:29:25 +01:00
parent 1ed7661774
commit 4887826a36
7 changed files with 253 additions and 16 deletions

View File

@@ -136,7 +136,6 @@ class UserDatabaseStore {
await db.update("user_data", {"last_seen_${category.name}": lastSeenDate},
where: "id = ?", whereArgs: [userId]);
}
// renamed things
Future<void> storeRenamedSubjects(Map<String, String> subjects,
@@ -218,4 +217,11 @@ class UserDatabaseStore {
await db.update("user_data", {"linked_accounts": accountsJson},
where: "id = ?", whereArgs: [userId]);
}
Future<void> storeCustomLessonDescriptions(Map<String, String> descs,
{required String userId}) async {
String descJson = jsonEncode(descs);
await db.update("user_data", {"custom_lesson_desc": descJson},
where: "id = ?", whereArgs: [userId]);
}
}