Private
Public Access
1
0

Merge tag 'v6.11' into develop

bug fix
This commit is contained in:
Sander Roosendaal
2018-03-08 08:39:56 +01:00
5 changed files with 27 additions and 4 deletions

View File

@@ -3149,11 +3149,23 @@ def thumbnails_set(r,id,favorites):
rowdata.dropna(axis=1,how='all',inplace=True)
if rowdata.empty:
return [
try:
rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=False,
workstrokesonly=False)
except:
return [
{'script':"",
'div':"",
'notes':""
}]
if rowdata.empty:
return [
{'script':"",
'div':"",
'notes':""
}]
else:
try:
rowdata.sort_values(by='time',ascending=True,inplace=True)

View File

@@ -101,10 +101,10 @@
<td>
{% if ps.name != '' %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}">{{ ps.name }}</a>
href="/rowers/sessions/{{ ps.id }}/{{ timeperiod }}/rower/{{ rower.id }}">{{ ps.name }}</a>
{% else %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}">Unnamed Session</a>
href="/rowers/sessions/{{ ps.id }}/{{ timeperiod }}/rower/{{ rower.id }}">Unnamed Session</a>
{% endif %}
</td>
<td> {{ ps.get_sessiontype_display }} </td>

View File

@@ -72,6 +72,9 @@
<div id="page" class="grid_12 alpha">
<div class="grid_10 prefix_2 alpha">
<h1>{{ workout.name }}</h1>
{% if workout.user.user != user %}
<h2>{{ workout.user.user.first_name }} {{ workout.user.user.last_name }}
{% endif %}
</div>
<div id="leftpanel" class="grid_2 alpha">
{% block left_panel %}

View File

@@ -70,7 +70,11 @@
<div class="grid_6 alpha">
<table width=100%>
<tr>
{% localtime on %}
{% localtime on %}
{% if workout.user.user != user %}
<th>Rower:</th><td>{{ rower.user.first_name }} {{ rower.user.last_name }}</td>
</tr><tr>
{% endif %}
<th>Date/Time:</th><td>{{ workout.startdatetime|localtime}}</td>
{% endlocaltime %}
</tr><tr>

View File

@@ -8067,6 +8067,8 @@ def workout_flexchart3_view(request,*args,**kwargs):
promember=1
if request.user == row.user.user:
mayedit=1
if checkworkoutuser(request.user,row):
mayedit=1
workouttype = 'ote'
if row.workouttype in ('water','coastal'):
@@ -8796,6 +8798,7 @@ def workout_edit_view(request,id=0,message="",successmessage=""):
'mapscript':mapscript,
'aantalcomments':aantalcomments,
'mapdiv':mapdiv,
'rower':r,
})
else:
@@ -8808,6 +8811,7 @@ def workout_edit_view(request,id=0,message="",successmessage=""):
'mapscript':mapscript,
'aantalcomments':aantalcomments,
'mapdiv':mapdiv,
'rower':r,
})