added update sent. No idea if it works

This commit is contained in:
Nico
2024-03-23 14:15:44 +01:00
parent d1ce04d2d0
commit b781f91d15
3 changed files with 19 additions and 11 deletions

View File

@@ -63,6 +63,13 @@ class DBHelper {
);
}
// function to update the sent value
Future<void> updateSent() async {
var placeDBClient = await placeDB;
placeDBClient.update('place', true as Map<String, Object?>, where: 'CID = ?', whereArgs: ['CID']);
}
// same thing as before but with templatews
Future<void> addTemplate(Map<String, dynamic> templates) async {
var placeDBClient = await placeDB;
@@ -95,6 +102,7 @@ class DBHelper {
);
}
// get the finished entries from db
Future<List<Map<String, dynamic>>> getPlace() async {
var placeDBClient = await placeDB;