File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export const HomeHero: React.FC<Props> = ({ scrollHandler }: Props) => {
260260 value = { activeUsers }
261261 className = "font-bold text-human-2"
262262 /> { ' ' }
263- users online
263+ recent users
264264 </ p >
265265 ) : (
266266 < > </ >
@@ -277,13 +277,13 @@ export const HomeHero: React.FC<Props> = ({ scrollHandler }: Props) => {
277277 value = { globalStats ?. puzzle_games_total || 0 }
278278 className = "font-bold text-human-2"
279279 /> { ' ' }
280- puzzle games solved
280+ puzzles solved
281281 </ p >
282282 { activeUsers <= 0 ? (
283283 < p className = "text-center text-base text-primary/80" >
284284 < AnimatedNumber
285285 value = { globalStats ?. turing_games_total || 0 }
286- className = "font-bold"
286+ className = "font-bold text-human-2 "
287287 /> { ' ' }
288288 turing games played
289289 </ p >
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ async function fetchActiveUsersFromPostHog(): Promise<number | null> {
5151 const url = `${ posthogUrl } /api/projects/${ projectId } /query/`
5252
5353 const now = new Date ( )
54- const thirtyMinutesAgo = new Date (
55- now . getTime ( ) - 30 * 60 * 1000 ,
54+ const twentyFourHoursAgo = new Date (
55+ now . getTime ( ) - 24 * 60 * 60 * 1000 ,
5656 ) . toISOString ( )
5757
5858 try {
@@ -69,7 +69,7 @@ async function fetchActiveUsersFromPostHog(): Promise<number | null> {
6969 SELECT count(DISTINCT person_id) as recent_users
7070 FROM events
7171 WHERE event = '$pageview'
72- AND timestamp > toDateTime('${ thirtyMinutesAgo } ')
72+ AND timestamp > toDateTime('${ twentyFourHoursAgo } ')
7373 ` ,
7474 } ,
7575 } ) ,
@@ -79,7 +79,7 @@ async function fetchActiveUsersFromPostHog(): Promise<number | null> {
7979 SELECT count(DISTINCT person_id) as recent_users
8080 FROM events
8181 WHERE event = '$pageview'
82- AND timestamp > TIMESTAMP '${ thirtyMinutesAgo } '
82+ AND timestamp > TIMESTAMP '${ twentyFourHoursAgo } '
8383 ` )
8484
8585 if ( ! response . ok ) {
You can’t perform that action at this time.
0 commit comments