Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bat-kryptonyte committed Jul 26, 2023
1 parent b36179f commit 8e0bc8e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
28 changes: 24 additions & 4 deletions src/screens/ARB/Arb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
FaArrowCircleRight,
FaFilePdf,
FaGithub,
FaBook,
FaImages,
} from "react-icons/fa";
import { AiFillFile } from "react-icons/ai";
Expand Down Expand Up @@ -143,11 +144,12 @@ const Arb: React.FC = () => {
<Flex mt={4} wrap="wrap" justify="center">
<Link
href="https://arxiv.org/pdf/2307.13692.pdf"
w={["100%", "auto"]}
w={["50%", "auto"]}
mb={4}
mr={[0, 4]}
>
<Button
w={"140px"}
leftIcon={<FaFilePdf />}
colorScheme="teal"
variant="solid"
Expand All @@ -157,11 +159,12 @@ const Arb: React.FC = () => {
</Link>
<Link
href="https://arxiv.org/abs/2307.13692"
w={["100%", "auto"]}
w={["50%", "auto"]}
mb={4}
mr={[0, 4]}
>
<Button
w={"140px"}
leftIcon={<AiFillFile />}
colorScheme="teal"
variant="solid"
Expand All @@ -171,27 +174,44 @@ const Arb: React.FC = () => {
</Link>
<Link
href="https://github.com/TheDuckAI/arb"
w={["100%", "auto"]}
w={["33.33%", "auto"]}
mb={4}
mr={[0, 4]}
>
<Button
w={"140px"}
leftIcon={<FaGithub />}
colorScheme="teal"
variant="solid"
>
Code
</Button>
</Link>
<Link href="/home" w={["100%", "auto"]} mb={4}>
<Link href="/home" w={["33.33%", "auto"]} mb={4}>
<Button
w={"140px"}
leftIcon={<FaImages />}
colorScheme="teal"
variant="solid"
>
Interface
</Button>
</Link>
<Link
href="https://app.swaggerhub.com/apis-docs/arb-dataset/arb-api/1.0.5"
w={["33.33%", "auto"]}
mb={4}
mr={[0, 4]}
>
<Button
w={"140px"}
leftIcon={<FaBook />}
colorScheme="teal"
variant="solid"
>
API
</Button>
</Link>
</Flex>
</Flex>
</Container>
Expand Down
6 changes: 3 additions & 3 deletions src/server/mongodb/actions/numericalProblem.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,23 @@ async function getAllPhysicsImgProblems() {

async function findMathProblemById(id) {
return findOneByMongoId(mathNumericalModel, id, {
"Problem Statement": 1,
Problem_Statement: 1,
Solution: 1,
"Final Answer": 1,
});
}

async function findPhysicsProblemById(id) {
return findOneByMongoId(physicsNumericalModel, id, {
"Problem Statement": 1,
Problem_Statement: 1,
Solution: 1,
"Final Answer": 1,
});
}

async function findPhysicsImgProblemById(id) {
return findOneByMongoId(physicsImgModel, id, {
"Problem Statement": 1,
Problem_Statement: 1,
Images: 1,
Solution: 1,
"Final Answer": 1,
Expand Down

0 comments on commit 8e0bc8e

Please sign in to comment.