Django timeToStation in seconds, not minutes

I’m making a little project to display times for bus stop in Django. I get all the data to display fine however the ‘timeToStation’ is in seconds and I would like it in minutes. Could I have help doing so?

Attached is the function I use and the HTML code I use to output the data I want from the API, but trying to get it in minutes is a challenge.

Welcome @AMH

Erm… divide by 60?

1 Like

It doesn’t allow me to divide by 60 it only outputs ‘/60’ on the page

1 Like

Thanks for your help!

1 Like