Commit e20633b6 authored by Administrator's avatar Administrator

stravaId got lost somehow, clean up code

parent 702a370b
......@@ -13,13 +13,12 @@ class Activity extends ChangeNotifier {
Activity.fromDb(this.db);
Activity.fromStrava(StravaActivity.SummaryActivity summaryActivity) {
db = DbActivity();
db
db = DbActivity()
..name = summaryActivity.name
..movingTime = summaryActivity.movingTime
..type = summaryActivity.type
..distance = summaryActivity.distance.toInt();
..distance = summaryActivity.distance.toInt()
..stravaId = summaryActivity.id;
notifyListeners();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment