Skip to content

Commit 33951b1

Browse files
committed
DB fix
1 parent af4333f commit 33951b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/routes/problemset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ router.get('/:id', async function(req, res, next) {
4141
router.get('/:id/:problem', function(req, res, next) {
4242
const userName = req.params.id
4343
const problem = req.params.problem
44+
const db = new sqlite3.Database('./db/O2ARC.db');
4445

4546
console.log(userName, problem)
4647
const query = 'SELECT content FROM tasklist WHERE id = ?';

0 commit comments

Comments
 (0)