Skip to content

Commit

Permalink
round off distance
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Muzina committed Apr 13, 2022
1 parent 347b0cc commit 0936f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
Expand Down

0 comments on commit 0936f1d

Please sign in to comment.