Private
Public Access
1
0

improving long step description

This commit is contained in:
Sander Roosendaal
2021-03-23 15:11:22 +01:00
parent da5611005a
commit a7b46ed28d
3 changed files with 38 additions and 65 deletions

View File

@@ -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):