Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
cnrdh committed Feb 27, 2025
1 parent 5cfd317 commit d2fe419
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions routes/pub_multiplicates.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { pubs } from "akvaplan_fresh/services/pub.ts";
import { Card, Page } from "akvaplan_fresh/components/mod.ts";
import { Page } from "akvaplan_fresh/components/mod.ts";
import { defineRoute, type RouteConfig } from "$fresh/server.ts";
import { pubsURL } from "akvaplan_fresh/services/nav.ts";
import { SearchResultItem } from "akvaplan_fresh/components/search_result_item.tsx";
import { atomizeSlimPublication } from "akvaplan_fresh/search/indexers/pubs.ts";

Expand All @@ -19,17 +18,17 @@ const getMultiplicates = async () => {
.groupBy(atoms, (pub) => pub.title);

return [...grouped]
.filter(([title, list]) => list.length > 1)
.filter(([_title, list]) => list.length > 1)
.sort((a, b) => b[1].length - a[1].length);
};

export default defineRoute(async (req, ctx) => {
export default defineRoute(async (_req, ctx) => {
const { lang } = ctx.params;
const multi = await getMultiplicates();

return (
<Page
title={""}
title={"Multi"}
lang={lang}
style={{
fontSize: "1rem",
Expand Down

0 comments on commit d2fe419

Please sign in to comment.