Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow valid permutations of molecules #1

Merged
merged 11 commits into from
Sep 27, 2024
Prev Previous commit
Add updated logging to Nuclear checker
  • Loading branch information
sjd210 committed Sep 20, 2024
commit 2946fc49daea653b566dc8809f7541cff46088c0
8 changes: 6 additions & 2 deletions src/routes/Nuclear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ router.post('/check', checkValidationRules, (req: Request, res: Response) => {
const result: CheckerResponse = check(test, target, allowPermutations);

res.status(201).send(result);

const resultStr: string = JSON.stringify(result, null, 4);

const str: string = JSON.stringify(result, null, 4);
console.log(`[server]: checker response ${str}`);
console.log(`[server]: question ID: ${req.body.questionID}`);
console.log(`[server]: target expression: ${req.body.target}`);
console.log(`[server]: test expression: ${req.body.test}`);
console.log(`[server]: checker response: ${resultStr}`);
});

router.post('/parse', parseValidationRules, (req: Request, res: Response) => {
Expand Down