Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
09075ed1
Commit
09075ed1
authored
Jan 17, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
300a4d99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
index.js
bin/index.js
+6
-2
No files found.
bin/index.js
View file @
09075ed1
...
@@ -16,12 +16,15 @@ const options = yargs
...
@@ -16,12 +16,15 @@ const options = yargs
.
option
(
"n"
,
{
alias
:
"nolog"
,
describe
:
"no text log in object"
,
type
:
"boolean"
})
.
option
(
"n"
,
{
alias
:
"nolog"
,
describe
:
"no text log in object"
,
type
:
"boolean"
})
.
option
(
"d"
,
{
alias
:
"dir"
,
describe
:
"database dir"
,
type
:
"string"
})
.
option
(
"d"
,
{
alias
:
"dir"
,
describe
:
"database dir"
,
type
:
"string"
})
.
option
(
"f"
,
{
alias
:
"fake"
,
describe
:
"add fake images"
,
type
:
"boolean"
})
.
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"
})
.
option
(
"i"
,
{
alias
:
"id"
,
describe
:
"return question with id. use it with `seed` arg"
,
type
:
"number"
})
.
argv
;
.
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(){
...
@@ -90,6 +93,7 @@ data.after = function(){
p
:
seeded
()
>
0.7
,
p
:
seeded
()
>
0.7
,
c
:
1
c
:
1
};
};
if
(
last
.
c
===
1
&&
seeded
()
>
0.5
){
if
(
last
.
c
===
1
&&
seeded
()
>
0.5
){
cur
=
{
cur
=
{
c
:
2
c
:
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment