From 4dcccb589d74fafd44ed37d266136adc7a352d82 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 14 Aug 2022 11:02:08 +0200 Subject: link to all matches on bot page --- web/pw-server/src/routes/bots/[bot_name].svelte | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/pw-server/src/routes/bots/[bot_name].svelte b/web/pw-server/src/routes/bots/[bot_name].svelte index d110e4b..3532e38 100644 --- a/web/pw-server/src/routes/bots/[bot_name].svelte +++ b/web/pw-server/src/routes/bots/[bot_name].svelte @@ -7,7 +7,7 @@ try { const [botData, matches] = await Promise.all([ apiClient.get(`/api/bots/${params["bot_name"]}`), - apiClient.get("/api/matches", { bot: params["bot_name"] }), + apiClient.get("/api/matches", { bot: params["bot_name"], count: "20" }), ]); const { bot, owner, versions } = botData; @@ -95,6 +95,11 @@

Recent matches

+ {#if matches.length > 0} + + {/if}