Skip to content

Commit

Permalink
Merge pull request #2415 from jaimergp/bust-stale-dls
Browse files Browse the repository at this point in the history
Bust stale download numbers
  • Loading branch information
beckermr authored Jan 7, 2025
2 parents 129c183 + 40316fc commit 3cc7737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/About/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default function Stats() {
useEffect(() => {
void (async () => {
try {
const response = await fetch(urls.stats);
const now = new Date();
const ts = `${now.getYear()}${now.getMonth()}${now.getDay()}${now.getHours()}`;
const response = await fetch(`${urls.stats}?timestamp=${ts}`);
const data = await response.json();
setStats(data);
} catch (error) {
Expand Down

0 comments on commit 3cc7737

Please sign in to comment.