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
fd4ec837
Commit
fd4ec837
authored
Mar 16, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no products bug fix
parent
2e638366
Pipeline
#570
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
generateRandom.js
src/api/generateRandom.js
+2
-1
No files found.
src/api/generateRandom.js
View file @
fd4ec837
...
...
@@ -534,8 +534,9 @@ module.exports = {
photo
=
option
.
photo
,
//seeded() > 0.7,
result
,
attempts
=
0
;
let
noProducts
=
Object
.
keys
(
ctx
.
dP
.
products
).
length
===
0
while
(
!
result
){
if
(
(
args
.
type
!==
void
0
?
args
.
type
===
2
:
seeded
()
>
0.5
)
){
if
(
(
args
.
type
!==
void
0
?
args
.
type
===
2
:
seeded
()
>
0.5
)
||
noProducts
){
result
=
ctx
.
standardGenerator
(
()
=>
rand
(
1
,
countStdQ
)
)
}
else
{
result
=
ctx
.
quizGenerator
(
...
...
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