Commit 09075ed1 by Иван Кубота

wip

parent 300a4d99
......@@ -16,12 +16,15 @@ const options = yargs
.option("n", { alias: "nolog", describe: "no text log in object", type: "boolean"})
.option("d", { alias: "dir", describe: "database dir", type: "string"})
.option("f", { alias: "fake", describe: "add fake images", type: "boolean"})
.option("c", { alias: "category", describe: "1 - product, 2 - standard", type: "number"})
.option("c", { alias: "category", describe: "1 - product, 2 - standard", type: "string"})
.option("i", { alias: "id", describe: "return question with id. use it with `seed` arg", type: "number"})
.argv;
let categoryFixed = false;
if(options.c)
categoryFixed = true;
options.c = options.category = options.c || 1;
options.c = options.category = (parseInt(options.c)|0) || 1;
......@@ -90,6 +93,7 @@ data.after = function(){
p: seeded() > 0.7,
c: 1
};
if( last.c === 1 && seeded() > 0.5 ){
cur = {
c: 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment