Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
ai
Commits
b26ce7a9
Commit
b26ce7a9
authored
Jun 19, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
427fc281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
final1000.js
final1000.js
+22
-21
No files found.
final1000.js
View file @
b26ce7a9
...
@@ -121,32 +121,33 @@ async function run(root,name, directory, timestamp) {
...
@@ -121,32 +121,33 @@ async function run(root,name, directory, timestamp) {
last
=
_
.
orderBy
(
arr2
,
[
'
maxRuntime
'
]);
last
=
_
.
orderBy
(
arr2
,
[
'
maxRuntime
'
]);
last
=
_
.
uniqBy
(
last
,
'
platform
'
);
let
las
=
[]
let
las
=
[]
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
if
(
i
<
last
.
length
&&
last
[
i
].
newAllDonePer
>
10
)
if
(
i
<
last
.
length
&&
last
[
i
].
newAllDonePer
>
10
)
las
.
push
(
last
[
i
])
las
.
push
(
last
[
i
])
}
}
last
=
[]
// last=[]
let
newLast
=
[]
// let newLast=[]
let
jj
=
'
[
'
// let jj='['
await
append
(
jj
)
// await append(jj)
for
(
let
i
=
0
;
i
<
las
.
length
;
i
++
)
// for (let i=0;i<las.length;i++)
{
// {
let
sidee
=
las
[
i
].
sideString
// let sidee=las[i].sideString
sidee
=
sidee
.
replace
(
/LONG/g
,
'
L
'
).
replace
(
/SHORT/g
,
'
S
'
)
// sidee=sidee.replace(/LONG/g, 'L').replace(/SHORT/g, 'S')
let
inline
=
'
{"c":"
'
+
las
[
i
].
closeDate
+
'
","p":"
'
+
las
[
i
].
profitLossString
+
'
","s":"
'
+
sidee
+
'
"}
'
// let inline='{"c":"'+las[i].closeDate+'","p":"'+las[i].profitLossString+'","s":"'+sidee+'"}'
if
(
i
!==
(
las
.
length
-
1
))
// if (i !==(las.length-1))
inline
=
inline
+
'
,
'
// inline=inline+','
await
append
(
inline
)
// await append(inline)
// jj=jj+inline
// // jj=jj+inline
}
// }
await
append
(
'
]
'
)
// await append(']')
// jj=jj+']'
// // jj=jj+']'
//console.log(las.length)
// //console.log(las.length)
createfileADV
(
root
,
timestamp
,
name
,
jj
)
// createfileADV(root,timestamp, name, jj)
createfileADV
(
root
,
timestamp
,
name
,
JSON
.
stringify
(
las
,
null
,
2
))
last
=
[]
last
=
[]
}
}
...
...
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