Private
Public Access
1
0

small fix

This commit is contained in:
Sander Roosendaal
2022-11-27 10:57:03 +01:00
parent 4d8ec7eeae
commit e30be63577
2 changed files with 12 additions and 9 deletions

View File

@@ -1288,6 +1288,7 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp
else: else:
df = pd.DataFrame() df = pd.DataFrame()
try:
if compute and len(df): if compute and len(df):
data = df.copy() data = df.copy()
if doclean: if doclean:
@@ -1296,6 +1297,8 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp
data.dropna(axis=1, how='all', inplace=True) data.dropna(axis=1, how='all', inplace=True)
data.dropna(axis=0, how='any', inplace=True) data.dropna(axis=0, how='any', inplace=True)
return data return data
except TypeError:
pass
return df return df

View File

@@ -92,7 +92,7 @@
{% if workout.rankingpiece %} {% if workout.rankingpiece %}
<span style="font-size: smaller"><i class="fal fa-asterisk"></i></span> <span style="font-size: smaller"><i class="fal fa-asterisk"></i></span>
{% endif %} {% endif %}
{% if workout.rpe == 0 %} {% if workout.rpe == 0 and not workout.duplicate %}
<span style="font-size: smaller"> <span style="font-size: smaller">
<a href="/rowers/workout/{{ workout.id|encode }}/edit/">No RPE</a> <a href="/rowers/workout/{{ workout.id|encode }}/edit/">No RPE</a>
</span> </span>