fixed get all functions
This commit is contained in:
@@ -52,17 +52,15 @@ class DBHelper {
|
||||
return database;
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> getAllLists() async {
|
||||
Future<List<Map<String, dynamic>>> getAllLists() async {
|
||||
Database db = await database;
|
||||
|
||||
return db.query("List", where: "is_template = ?", whereArgs: ['0'])
|
||||
as Map<String, dynamic>;
|
||||
return db.query("List", where: "is_template = ?", whereArgs: ['0']);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> getAllTemplates() async {
|
||||
Future<List<Map<String, dynamic>>> getAllTemplates() async {
|
||||
Database db = await database;
|
||||
|
||||
return db.query("List", where: "is_template = ?", whereArgs: ['1'])
|
||||
as Map<String, dynamic>;
|
||||
return db.query("List", where: "is_template = ?", whereArgs: ['1']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user