Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Oct 11, 2023
2 parents 9322318 + 2a0acf1 commit f8d0966
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Checkout
if: steps.configure.outputs.tag != null
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Checkout
if: steps.configure.outputs.tag != null
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Checkout
if: steps.configure.outputs.tag != null
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
uses: microsoft/[email protected]

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/memtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
access_token: ${{github.token}} # needs other token https://github.com/styfle/cancel-workflow-action/issues/7

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
4 changes: 1 addition & 3 deletions frontend/src/app/q/[...query]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Card from "./card";
import PageChanger from "./pageChanger";
import { useRouter } from "next/navigation";

export default async function SearchResultPage({
params,
Expand All @@ -10,13 +9,12 @@ export default async function SearchResultPage({
page_number?: number;
};
}) {
const router = useRouter();
const query = decodeURIComponent(params.query);
const resp = await fetch("http://127.0.0.1:4365/api", {
method: "POST",
body: query,
headers: {
page: router.query["page"] || 0
page: params.page_number?.toString() || '',
}
});
const data = await resp.json();
Expand Down

0 comments on commit f8d0966

Please sign in to comment.