bugfix split workout
This commit is contained in:
@@ -1402,9 +1402,18 @@ def split_workout(r, parent, splitsecond, splitmode):
|
|||||||
messages.append(message)
|
messages.append(message)
|
||||||
ids.append(id)
|
ids.append(id)
|
||||||
if 'keep second' in splitmode:
|
if 'keep second' in splitmode:
|
||||||
data2['cumdist'] = data2['cumdist'] - data2.iloc[0, 'cumdist']
|
data2['cumdist'] = data2['cumdist'] - data2.iloc[
|
||||||
data2['distance'] = data2['distance'] - data2.iloc[0, 'distance']
|
0,
|
||||||
data2['time'] = data2['time'] - data2.iloc[0, 'time']
|
data2.columns.get_loc('cumdist')
|
||||||
|
]
|
||||||
|
data2['distance'] = data2['distance'] - data2.iloc[
|
||||||
|
0,
|
||||||
|
data2.columns.get_loc('distance')
|
||||||
|
]
|
||||||
|
data2['time'] = data2['time'] - data2.iloc[
|
||||||
|
0,
|
||||||
|
data2.columns.get_loc('time')
|
||||||
|
]
|
||||||
if 'secondprivate' in splitmode:
|
if 'secondprivate' in splitmode:
|
||||||
setprivate = True
|
setprivate = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -942,6 +942,8 @@ def handle_sendemail_invite(email, name, code, teamname, manager,
|
|||||||
message += " team's workouts on rowsandall.com and your workouts will "
|
message += " team's workouts on rowsandall.com and your workouts will "
|
||||||
message += " be visible to "
|
message += " be visible to "
|
||||||
message += "the members of the team.\n\n"
|
message += "the members of the team.\n\n"
|
||||||
|
message += "By accepting the invite, you are agreeing with the sharing "
|
||||||
|
message += "of personal data according to our privacy policy.\n\n"
|
||||||
message += 'If you already have an account on rowsandall.com, you can login to the site and you will find the invitation here on the Teams page:\n'
|
message += 'If you already have an account on rowsandall.com, you can login to the site and you will find the invitation here on the Teams page:\n'
|
||||||
message += ' https://rowsandall.com/rowers/me/teams \n\n'
|
message += ' https://rowsandall.com/rowers/me/teams \n\n'
|
||||||
message += 'You can also click the direct link: \n'
|
message += 'You can also click the direct link: \n'
|
||||||
|
|||||||
@@ -106,7 +106,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="grid_6 omega">
|
<div class="grid_6 omega">
|
||||||
{% if invites or requests or myrequests or myinvites %}
|
{% if invites or requests or myrequests or myinvites %}
|
||||||
<h2>Invitations and Requests</h2>
|
<h2>Invitations and Requests</h2>
|
||||||
|
<p>This section lists open invites to join a team. By accepting
|
||||||
|
a team invite, you are agreeing with the sharing
|
||||||
|
of personal data between team members and coaches according to
|
||||||
|
our <a href="/rowers/legal">privacy policy</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
<table width="90%" class="listtable">
|
<table width="90%" class="listtable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user