small fix
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user