projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished User management implementation
[vchess.git]
/
models
/
Problem.js
diff --git
a/models/Problem.js
b/models/Problem.js
index
0c80090
..
cdd146e
100644
(file)
--- a/
models/Problem.js
+++ b/
models/Problem.js
@@
-2,7
+2,7
@@
var db = require("../utils/database");
/*
* Structure:
/*
* Structure:
- *
_
id: problem number (int)
+ * id: problem number (int)
* uid: user id (int)
* vid: variant id (int)
* added: timestamp
* uid: user id (int)
* vid: variant id (int)
* added: timestamp
@@
-18,7
+18,7
@@
exports.create = function(vname, fen, instructions, solution)
"INSERT INTO Problems (added, vid, fen, instructions, solution) VALUES " +
"(" +
Date.now() + "," +
"INSERT INTO Problems (added, vid, fen, instructions, solution) VALUES " +
"(" +
Date.now() + "," +
- variant.
_
id + "," +
+ variant.id + "," +
fen + "," +
instructions + "," +
solution +
fen + "," +
instructions + "," +
solution +