diff --git a/app.py b/app.py index b2aa749..0355a58 100644 --- a/app.py +++ b/app.py @@ -256,7 +256,7 @@ def render_generatePage(): file.save(os.path.join(flaskApp.config['UPLOAD_FOLDER'], filename)) totalLength = request.form["selectedActivityLength"] - totalDistance = request.form["selectedActivityDistance"] + totalDistance = str(int(request.form["selectedActivityDistance"])) if session["networkName"] != "gpxFile": userCachedData[uniqueId]["visualizationResult"] = functions.getImageBase64String(generateVis.getVis(data=data, lineThickness=int(formArgs["pathThickness"]), gridOn=formArgs["displayGridLines"] == "on", backgroundColor=formArgs["backgroundColor"], backgroundImage = filename, backgroundBlur = formArgs["blurIntensity"], foregroundColor=formArgs["pathColor"], gridColor=formArgs["gridlineColor"], gridThickness=int(formArgs["gridThickness"]), infoText=formArgs["infoText"],silhouetteImage=formArgs["silhouetteImage"], duplicateActivities=formArgs["duplicateActivities"], textBackgroundFade=formArgs["textBackgroundFade"], totalTime=functions.getTimeStr(totalLength), totalDistance=str(totalDistance) + " mi."))