From 0c496fa31587a77bf631579baf9f62e574464eec Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 10 Apr 2018 16:48:44 +0200 Subject: [PATCH] small bug fix --- .gpx | 3 +++ .tcx | 14 ++++++++++++++ rowers/interactiveplots.py | 5 ++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .gpx create mode 100644 .tcx diff --git a/.gpx b/.gpx new file mode 100644 index 00000000..c2d010f0 --- /dev/null +++ b/.gpx @@ -0,0 +1,3 @@ + +Garmin InternationalExport by rowingdata + diff --git a/.tcx b/.tcx new file mode 100644 index 00000000..f3a5c6af --- /dev/null +++ b/.tcx @@ -0,0 +1,14 @@ + + + + + + 2015-03-28T20:45:15.000Z + + Empty File + 0 + 0 + + + + diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 9e652900..90d0ee2a 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -774,7 +774,10 @@ def interactive_histoall(theworkouts): if rowdata.empty: return "","No Valid Data Available","","" - histopwr = rowdata['power'].values + try: + histopwr = rowdata['power'].values + except KeyError: + return "","No power data","","" if len(histopwr) == 0: return "","No valid data available","",""