From 7a402e464cfab04be24f5f8ff223b648a81950ac Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 27 Feb 2023 15:19:03 +0100 Subject: [PATCH] quickfix relapse model --- lib/models/relapse.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/models/relapse.dart b/lib/models/relapse.dart index 2e65f51..0271d31 100644 --- a/lib/models/relapse.dart +++ b/lib/models/relapse.dart @@ -10,7 +10,7 @@ class Relapse implements DatabaseRecord { @override factory Relapse.fromDatabase(Map map) { DateTime date = DateTime.parse(map['date']); - return Relapse(map['_category'], map['comment'], date); + return Relapse(map['category'], map['comment'], date); } @override @@ -21,6 +21,7 @@ class Relapse implements DatabaseRecord { @override Map toMap() { return { + 'category': _category, 'comment': _comment, 'date': _date.toIso8601String(), };