diff options
-rw-r--r-- | src/routes/election.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/election.svelte b/src/routes/election.svelte index e987f8c..2c710ce 100644 --- a/src/routes/election.svelte +++ b/src/routes/election.svelte @@ -3,7 +3,9 @@ import { API_URL } from '$lib/api' export const load: Load = async ({ params, fetch }) => { - const data = await fetch(`${API_URL}election`).then(r => r.json()) + const data = await fetch(`${API_URL}election?t=${Math.floor(Date.now() / 1000)}`).then(r => + r.json() + ) return { props: { |