File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ class TaskDatabase {
12
12
13
13
Future <void > open () async {
14
14
String path = await getDatabasePathForCurrentProfile ();
15
- _open (path);
15
+ await _open (path);
16
16
}
17
17
18
18
Future <void > _open (path) async {
19
+ debugPrint ("called _open with $path " );
19
20
_database = await openDatabase (path, version: 2 ,
20
21
onCreate: (Database db, version) async {
21
22
await db.execute ('''
@@ -79,7 +80,7 @@ class TaskDatabase {
79
80
}
80
81
81
82
Future <void > openForProfile (String profile) async {
82
- String path = await getDatabasePathForCurrentProfile ( );
83
+ String path = await getDatabasePathForProfile (profile );
83
84
_open (path);
84
85
}
85
86
@@ -274,7 +275,7 @@ class TaskDatabase {
274
275
where: 'uuid IS NULL OR uuid = ?' ,
275
276
whereArgs: ['' ],
276
277
);
277
-
278
+ debugPrint ( "Tasks without uuid are $ maps " );
278
279
return await Future .wait (
279
280
maps.map ((mapItem) => getObjectForTask (mapItem)).toList (),
280
281
);
You can’t perform that action at this time.
0 commit comments