Travel Mapping

User Discussions => Other Discussion => Topic started by: Markkos1992 on May 19, 2024, 10:33:49 pm

Title: Mileage Issues
Post by: Markkos1992 on May 19, 2024, 10:33:49 pm
How come most mileage statistics have all of a sudden ended up at 0? 
Title: Re: Mileage Issues
Post by: neroute2 on May 19, 2024, 11:03:31 pm
I ate them. 😋
Title: Re: Mileage Issues
Post by: Markkos1992 on May 19, 2024, 11:45:40 pm
My stats page is showing the below line: https://travelmapping.net/user/?units=miles&u=markkos1992

Warning: Division by zero in /fast/www/tm/user/index.php on line 231

Title: Re: Mileage Issues
Post by: oscar on May 20, 2024, 12:14:43 am
That affects Showroute's display of my mileage on specific routes, including some in the Midwest I just clinched in the last few days, and others elsewhere I clinched earlier this year. Showroute still shows me as having clinched those routes, just screws up the percentages.
Title: Re: Mileage Issues
Post by: michih on May 20, 2024, 01:16:46 am
The whole site indicates 0 miles for all users (railway too). It seems to be a general issue beyond hwy data but anything "in the code" or "in the infrastructure".
Title: Re: Mileage Issues
Post by: michih on May 20, 2024, 01:21:56 am
I think it happened when a data processing speedup (https://github.com/TravelMapping/DataProcessing/pull/623) was deployed.
Title: Re: Mileage Issues
Post by: michih on May 20, 2024, 02:17:29 am
It seems to be an issue with MySQL (https://github.com/TravelMapping/DataProcessing/pull/623#issuecomment-2119732971). Jim simply needs to deploy the old code and run an update again.
Title: Re: Mileage Issues
Post by: Jim on May 20, 2024, 07:47:42 am
It looks like every segment length in the .sql file generated by site update is in a format that mysql doesn't like.

I've got a busy day today but will see if I can get the code reverted and run a site update again.  Or better yet, @yakra has a quick fix and I'll run a new update with his new code plus bugfix.
Title: Re: Mileage Issues
Post by: Jim on May 20, 2024, 08:10:07 am
As expected, git is my friend and let me quickly check out an older version.  Recompiled, re-ran the site update, and we look to be good.
Title: Re: Mileage Issues
Post by: Jim on May 20, 2024, 08:13:10 am
FYI, I had to do a hard reload on some pages to force it to re-read the DB after the site update.
Title: Re: Mileage Issues
Post by: Markkos1992 on May 20, 2024, 08:31:53 am
Looks much better now!!
Title: Re: Mileage Issues
Post by: michih on May 25, 2024, 01:37:41 pm
Railways do still need an update to bring mileage back…
Title: Re: Mileage Issues
Post by: Jim on May 25, 2024, 02:44:21 pm
Railways do still need an update to bring mileage back…

Done.
Title: Re: Mileage Issues
Post by: Markkos1992 on May 26, 2024, 11:57:39 am
Railways do still need an update to bring mileage back…

Thank you for catching that.  I actually need to update my list file there due to myself clinching some DC Metro Mileage yesterday going to/from the Nats game corco invited myself and some other northeast road enthusiasts to.
Title: Re: Mileage Issues
Post by: bejacob on August 12, 2024, 12:54:03 pm
On the subject of Railways, is there any plan to add the Athens (GRC) Metro and/or trams?
Title: Re: Mileage Issues
Post by: si404 on August 12, 2024, 02:49:44 pm
On the subject of Railways, is there any plan to add the Athens (GRC) Metro and/or trams?
Yes, but not this week unless someone that isn't me adds it (I don't care if I'm gazumped here).

That said, I added Kuala Lumpur instead of Athens (which I had planned to be the next city I drafted). But as there's demand, it would probably be a job for next Monday (after I get back from holiday).
Title: Re: Mileage Issues
Post by: bejacob on August 12, 2024, 04:45:46 pm
No urgency. I appreciate what's already there.

I was just looking back over my travels and recalling places where I rode metros/trams and noticed it Athens wasn't represented (yet). Truly glad for how much is there and sad I haven't ridden more