wavly / shawty

Tool for shortening long URLs
MIT License
5 stars 0 forks source link

Bug in the stats page #30

Closed resslr closed 2 months ago

resslr commented 2 months ago

Error with checking stats

To reproduce: Shorten link and click stats without testing the shortened link first

Theory: We have no static page or way to handle no stats, we should make a "We can't get stats without any links 😉 " type of page

resslr commented 2 months ago
error

For some reason now it semiworks but does this

Hamza12700 commented 2 months ago

Yeah, for some reason when you create a new short link it does some goofy stuff wher the Last Accessed Timestamp is completely messed up. It could be because of the last_accessed can be null so maybe that's what casuing the issue.

It's nothing to do with Memcached

https://github.com/user-attachments/assets/e3821d2e-61cf-46dd-955a-b4a6fd9ff491

Hamza12700 commented 2 months ago

I was right, it's because when the last_accessed timestamp is null it gives the wrong timediff.