fixed a lot of things after i broke everything. Just the card is not implemented again yet

time
This commit is contained in:
Nico
2025-05-12 23:09:28 +02:00
parent 97691f3453
commit 74b4648e73
18 changed files with 599 additions and 479 deletions

View File

@@ -118,14 +118,24 @@ class PlaceDBHelper implements IDb{
@override
Future<List<Map<String, dynamic>>> getAllMainEntries() async {
var placeDBClient = await dB;
return await placeDBClient.query('place');
var erg = await placeDBClient.query('place');
if (erg.isEmpty) {
return [];
} else {
return erg;
}
}
// get the finished templates from db
@override
Future<List<Map<String, dynamic>>> getAllTemplates() async {
var placeDBClient = await dB;
return await placeDBClient.query('placeTemplates');
var erg = await placeDBClient.query('placeTemplates');
if (erg.isEmpty) {
return [];
} else {
return erg;
}
}
// deletes all finished entries from the db LOCALLY