Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Jan 3, 2025
1 parent 0b7c832 commit e0bbdd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Latenesses } from "./api/latenesses/+server";
import type { AggregateResponse } from "./api/(live-statuses)/aggregate/+server";
import { nextFast, overwriteData } from "$lib/stores.ts";
import type { NewsPost } from "$lib/news/news.ts";
import { getNextWAN } from "$lib/timeUtils.ts";
import { getClosestWan, getNextWAN } from "$lib/timeUtils.ts";

let cachedLatenesses: Latenesses;
let cachedLatenessesTime = 0 ;
Expand Down Expand Up @@ -117,7 +117,7 @@ export const load = (async ({fetch, params, url}) => {
preShowStarted,
mainShowStarted,
fast,
hasDone: liveStatus ? liveStatus.hasDone : getNextWAN().getTime() > Date.now(),
hasDone: liveStatus ? liveStatus.hasDone : getClosestWan().getTime() > Date.now(),
averageLateness: latenesses?.averageLateness,
latenessStandardDeviation: latenesses?.latenessStandardDeviation,
medianLateness: latenesses?.medianLateness,
Expand Down

0 comments on commit e0bbdd9

Please sign in to comment.