Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
a87e09f1
Commit
a87e09f1
authored
Dec 31, 2023
by
Wei Shoulin
Browse files
build_id to build
parent
1ddab086
Changes
2
Show whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/facility/level1.py
View file @
a87e09f1
...
@@ -216,7 +216,7 @@ class Level1DataApi(object):
...
@@ -216,7 +216,7 @@ class Level1DataApi(object):
prc_time : [str]
prc_time : [str]
pipeline_id : [str]
pipeline_id : [str]
pmapname : [str]
pmapname : [str]
build
_id
: [int]
build : [int]
return csst_dfs_common.models.Result
return csst_dfs_common.models.Result
'''
'''
...
@@ -234,7 +234,7 @@ class Level1DataApi(object):
...
@@ -234,7 +234,7 @@ class Level1DataApi(object):
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
,
0
),
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
,
0
),
prc_time
=
get_parameter
(
kwargs
,
"prc_time"
,
format_datetime
(
datetime
.
now
())),
prc_time
=
get_parameter
(
kwargs
,
"prc_time"
,
format_datetime
(
datetime
.
now
())),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
),
build
_id
=
get_parameter
(
kwargs
,
"build
_id
"
,
0
),
build
=
get_parameter
(
kwargs
,
"build"
,
0
),
pmapname
=
get_parameter
(
kwargs
,
"pmapname"
,
""
),
pmapname
=
get_parameter
(
kwargs
,
"pmapname"
,
""
),
refs
=
get_parameter
(
kwargs
,
"refs"
,
{})
refs
=
get_parameter
(
kwargs
,
"refs"
,
{})
)
)
...
...
csst_dfs_api_cluster/facility/level2.py
View file @
a87e09f1
...
@@ -35,7 +35,7 @@ class Level2DataApi(object):
...
@@ -35,7 +35,7 @@ class Level2DataApi(object):
prc_status : [int],
prc_status : [int],
import_status : [int],
import_status : [int],
filename: [str],
filename: [str],
build
_id
: [int],
build : [int],
pipeline_id: [str],
pipeline_id: [str],
limit: limits returns the number of records,default 0:no-limit
limit: limits returns the number of records,default 0:no-limit
...
@@ -57,7 +57,7 @@ class Level2DataApi(object):
...
@@ -57,7 +57,7 @@ class Level2DataApi(object):
object_name
=
get_parameter
(
kwargs
,
"object_name"
),
object_name
=
get_parameter
(
kwargs
,
"object_name"
),
limit
=
get_parameter
(
kwargs
,
"limit"
,
0
),
limit
=
get_parameter
(
kwargs
,
"limit"
,
0
),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
),
build
_id
=
get_parameter
(
kwargs
,
"build
_id
"
,
-
1024
),
build
=
get_parameter
(
kwargs
,
"build"
,
-
1024
),
other_conditions
=
{
"test"
:
"cnlab.test"
}
other_conditions
=
{
"test"
:
"cnlab.test"
}
),
metadata
=
get_auth_headers
())
),
metadata
=
get_auth_headers
())
...
@@ -243,7 +243,7 @@ class Level2DataApi(object):
...
@@ -243,7 +243,7 @@ class Level2DataApi(object):
prc_status : [int]
prc_status : [int]
prc_time : [str]
prc_time : [str]
pipeline_id : [str]
pipeline_id : [str]
build
_id
: [int]
build : [int]
return csst_dfs_common.models.Result
return csst_dfs_common.models.Result
'''
'''
...
@@ -261,7 +261,7 @@ class Level2DataApi(object):
...
@@ -261,7 +261,7 @@ class Level2DataApi(object):
qc2_status
=
get_parameter
(
kwargs
,
"qc2_status"
,
0
),
qc2_status
=
get_parameter
(
kwargs
,
"qc2_status"
,
0
),
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
,
0
),
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
,
0
),
prc_time
=
get_parameter
(
kwargs
,
"prc_time"
,
format_datetime
(
datetime
.
now
())),
prc_time
=
get_parameter
(
kwargs
,
"prc_time"
,
format_datetime
(
datetime
.
now
())),
build
_id
=
get_parameter
(
kwargs
,
"build
_id
"
,
0
),
build
=
get_parameter
(
kwargs
,
"build"
,
0
),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
)
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
,
""
)
)
)
def
stream
(
rec
):
def
stream
(
rec
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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