vtstats / web

VTubers Statistics and Data Visualization
https://vt.poi.cat
134 stars 28 forks source link

fix(web): filter out outdated schedules #824

Closed joe50261 closed 1 year ago

joe50261 commented 1 year ago

The schedule is now filled with outdated schedules that take up pages. I refer to the existing startAt parameter and try to modify the initial value when the page loads. But I never actually ran the code or debugged it, so please evaluate with caution.

image

PoiScript commented 1 year ago

Thanks for contributing! I replaced startAt === 0 ? Date.now() : startAt with max([startAt || 0, subHours(Date.now(), 6)]) to only filter out streams that scheduled at 6 hours ago, since they are sometimes late starting streams.

PoiScript commented 1 year ago

And it's deployed now. ;) image