yihong0618 / running_page

Make your own running home page
https://running-page.vercel.app
MIT License
3.63k stars 1.05k forks source link

fix: tracks color #730

Closed orionna319 closed 1 month ago

orionna319 commented 1 month ago
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
running-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 2:23pm
orionna319 commented 1 month ago

I see that diff is the longest distance minus the shortest distance. Looking at this data, it is indeed not zero. So I don't quite understand what this diff is used for.

def diameter(self) -> float:
        if self.is_valid():
            return self.upper() - self.lower()
        return 0

diff = length_range.diameter()

image

yihong0618 commented 1 month ago

Thanks will dig it later