fixed warning, because field ID is no longer existent

This commit is contained in:
Nico
2025-05-10 22:31:20 +02:00
parent f3c6c172d1
commit fe868c7839
2 changed files with 16 additions and 16 deletions

View File

@@ -86,14 +86,14 @@ class ExcursionDBHelper implements IDb{
Future<void> addTemplate(Map<String, String> templates) async {
var excursionDBClient = await dB;
final existingCID = await excursionDBClient.query(
'excursionTemplates',
where: 'ID = ?',
whereArgs: [templates['ID']],
);
if (existingCID.isNotEmpty) {
return;
}
// final existingCID = await excursionDBClient.query(
// 'excursionTemplates',
// where: 'ID = ?',
// whereArgs: [templates['ID']],
// );
// if (existingCID.isNotEmpty) {
// return;
// }
await excursionDBClient.insert(
'excursionTemplates',

View File

@@ -85,14 +85,14 @@ class PlaceDBHelper implements IDb{
Future<void> addTemplate(Map<String, String> templates) async {
var placeDBClient = await dB;
final existingCID = await placeDBClient.query(
'placeTemplates',
where: 'ID = ?',
whereArgs: [templates['ID']],
);
if (existingCID.isNotEmpty) {
return;
}
// final existingCID = await placeDBClient.query(
// 'placeTemplates',
// where: 'ID = ?',
// whereArgs: [templates['ID']],
// );
// if (existingCID.isNotEmpty) {
// return;
// }
await placeDBClient.insert(
'placeTemplates',