Skip to content

Commit

Permalink
支持跑步机活动 (#5)
Browse files Browse the repository at this point in the history
* Fix undefined intensity type.

* Support treadmill running.
  • Loading branch information
zhongl authored Aug 1, 2024
1 parent 381967b commit 5a0cced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OnPageActivity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object OnPageActivity:
for
a <- Service.activity(id.toDouble)
t <- a.activityTypeDTO
k <- t.typeKey if k == "running"
k <- t.typeKey if k == "running" || k == "treadmill_running"
do
for laps <- Service.laps(id.toDouble) if laps.nonEmpty do
Plot(aa.init(e.before(_), "scatter"), Arr(laps), "速心比变化趋势")(using _.scatter)
Expand Down

0 comments on commit 5a0cced

Please sign in to comment.