Skip to content

Commit

Permalink
feat: last update
Browse files Browse the repository at this point in the history
  • Loading branch information
pkreissel committed Oct 26, 2023
1 parent 4b74319 commit f8d0b64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { list } from '@vercel/blob';
export default async function Home() {
const { blobs } = await list();
const hashtags_data = await get("hashtags") as string;
const last_update = await get("last_update") as string;
const hashtags: string[] = JSON.parse(hashtags_data)
const hashtag_summaries = Object.assign({},
...await Promise.all(hashtags.map(async (hashtag: string) => {
Expand All @@ -15,10 +16,11 @@ export default async function Home() {
return { [hashtag]: data }
}))
)
console.log(last_update)
return (
<main className="flex min-h-screen p-24">
<main className="min-h-screen p-24">
<h1>Deutsche Bluesky Hashtags</h1>

<p>Last updated: {(new Date(parseInt(last_update ?? "0"))).toLocaleTimeString()}</p>
<div>
{hashtags.map((hashtag: string, i: number) => (
<p key={i}>
Expand Down

0 comments on commit f8d0b64

Please sign in to comment.