improving long step description
This commit is contained in:
@@ -32,16 +32,7 @@ from rowingdata import rower as rrower
|
||||
|
||||
from rowers.opaque import encoder
|
||||
|
||||
def to_pace(pace):
|
||||
minutes, seconds = divmod(pace,60)
|
||||
seconds, rest = divmod(seconds, 1)
|
||||
tenths = int(rest*10)
|
||||
s = '{m:0>2}:{s:0>2}.{t:0>1}'.format(
|
||||
m=int(minutes),
|
||||
s=int(seconds),
|
||||
t=int(tenths)
|
||||
)
|
||||
return s
|
||||
from rowers.utils import to_pace
|
||||
|
||||
|
||||
def to_time(milliseconds):
|
||||
|
||||
Reference in New Issue
Block a user