Commit a87e09f1 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

build_id to build

parent 1ddab086
...@@ -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", {})
) )
......
...@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment