update to server location popup
This commit is contained in:
@ -45,7 +45,8 @@ class DatabaseHelper{
|
||||
checkedin INTEGER,
|
||||
cp REAL,
|
||||
checkin_point REAL,
|
||||
buy_point REAL
|
||||
buy_point REAL,
|
||||
hidden_location INTEGER
|
||||
)
|
||||
''');
|
||||
|
||||
@ -82,6 +83,14 @@ class DatabaseHelper{
|
||||
return roglist;
|
||||
}
|
||||
|
||||
Future<Destination> getDestinationById(int id) async {
|
||||
Database db = await instance.database;
|
||||
var rog = await db.query('destination', where: "location_id = ${id}");
|
||||
List<Destination> deslist = rog.isNotEmpty
|
||||
? rog.map((e) => Destination.fromMap(e)).toList() : [];
|
||||
return deslist[0];
|
||||
}
|
||||
|
||||
|
||||
Future<int> deleteRogaining(int rog_id) async {
|
||||
Database db = await instance.database;
|
||||
@ -195,7 +204,7 @@ class DatabaseHelper{
|
||||
dest.toMap(),
|
||||
conflictAlgorithm: ConflictAlgorithm.replace,
|
||||
);
|
||||
print("------ database helper insert ${res}-----------::::::::");
|
||||
print("------ database helper insert ${dest.toMap()}-----------::::::::");
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user