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
118739ce
Commit
118739ce
authored
Apr 24, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pu
parent
164280e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
final.js
final.js
+2
-1
test_json.js
test_json.js
+2
-2
No files found.
final.js
View file @
118739ce
...
@@ -18,6 +18,7 @@ async function work() {
...
@@ -18,6 +18,7 @@ async function work() {
let
arr
=
[]
let
arr
=
[]
for
(
let
j
=
0
;
j
<
1000
;
j
++
)
{
for
(
let
j
=
0
;
j
<
1000
;
j
++
)
{
try
{
try
{
if
(
parseFloat
(
directory
[
j
+
i
].
split
(
'
Y
'
)[
0
].
split
(
'
-
'
)[
1
])
<=
year
)
if
((
j
+
i
)
<
directory
.
length
)
if
((
j
+
i
)
<
directory
.
length
)
arr
.
push
(
directory
[
j
+
i
])
arr
.
push
(
directory
[
j
+
i
])
}
catch
(
e
)
{
}
catch
(
e
)
{
...
@@ -120,7 +121,7 @@ async function run(root, name, directory, timestamp) {
...
@@ -120,7 +121,7 @@ async function run(root, name, directory, timestamp) {
let
las
=
[]
let
las
=
[]
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
if
(
i
<
last
.
length
)
if
(
i
<
last
.
length
)
if
(
last
[
i
].
total
>
5
&&
last
[
i
].
pftrade
>=
0.000001
&&
last
[
i
].
maxLevel
===
0
&&
parseFloat
(
last
[
i
].
platform
.
split
(
'
Y
'
)[
0
].
split
(
'
-
'
)[
1
])
<=
year
)
{
if
(
last
[
i
].
total
>
5
&&
last
[
i
].
pftrade
>=
0.000001
&&
last
[
i
].
maxLevel
===
0
)
{
delete
last
[
i
].
durDetailText
delete
last
[
i
].
durDetailText
delete
last
[
i
].
metaDetailText
delete
last
[
i
].
metaDetailText
let
needContinue
=
false
let
needContinue
=
false
...
...
test_json.js
View file @
118739ce
let
t
=
'
last.json-2021Y22021712
2912_O1_BNC_ETHUSDT_Lp4344_1ETH
3.csv
'
let
t
=
'
last.json-2021Y22021712
3254_O1_BNC_ETHUSDT_Lp7437_1ETH1
3.csv
'
console
.
log
()
console
.
log
(
parseFloat
(
t
.
split
(
'
Y
'
)[
0
].
split
(
'
-
'
)[
1
]))
\ No newline at end of file
\ No newline at end of file
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