finished excursion view so far. Just need to test everything
time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user