finished excursion view so far. Just need to test everything

time
This commit is contained in:
Nico
2025-05-13 22:18:37 +02:00
parent 74b4648e73
commit 3084540b6d
17 changed files with 472 additions and 360 deletions

View File

@@ -82,7 +82,7 @@ class PlaceDBHelper implements IDb{
// same thing as before but with templatews
@override
Future<void> addTemplate(Map<String, String> templates) async {
Future<int> addTemplate(Map<String, String> templates) async {
var placeDBClient = await dB;
// final existingCID = await placeDBClient.query(
@@ -94,11 +94,12 @@ class PlaceDBHelper implements IDb{
// return;
// }
await placeDBClient.insert(
int id = await placeDBClient.insert(
'placeTemplates',
templates,
// conflictAlgorithm: ConflictAlgorithm.replace,
);
return id;
}
// Updates a existing template