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-local
Commits
5ab3235a
Commit
5ab3235a
authored
Jun 10, 2021
by
Wei Shoulin
Browse files
add prc_time
parent
c7f144c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_local/ifs/level1.py
View file @
5ab3235a
...
...
@@ -190,7 +190,7 @@ class Level1DataApi(object):
sky_id
=
get_parameter
(
kwargs
,
"sky_id"
),
filename
=
get_parameter
(
kwargs
,
"filename"
),
file_path
=
get_parameter
(
kwargs
,
"file_path"
),
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
),
prc_status
=
get_parameter
(
kwargs
,
"prc_status"
,
-
1
),
prc_time
=
get_parameter
(
kwargs
,
"prc_time"
,
format_datetime
(
datetime
.
datetime
.
now
())),
pipeline_id
=
get_parameter
(
kwargs
,
"pipeline_id"
)
)
...
...
@@ -205,7 +205,7 @@ class Level1DataApi(object):
self
.
db
.
execute
(
'INSERT INTO ifs_level1_data (raw_id,data_type,cor_sci_id,prc_params,flat_id,dark_id,bias_id,lamp_id,arc_id,sky_id,filename,file_path,qc1_status,prc_status,prc_time, create_time,pipeline_id)
\
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'
,
(
rec
.
raw_id
,
rec
.
data_type
,
rec
.
cor_sci_id
,
rec
.
prc_params
,
rec
.
flat_id
,
rec
.
dark_id
,
rec
.
bias_id
,
rec
.
lamp_id
,
rec
.
arc_id
,
rec
.
sky_id
,
rec
.
filename
,
rec
.
file_path
,
-
1
,
-
1
,
rec
.
prc_time
,
format_time_ms
(
time
.
time
()),
rec
.
pipeline_id
,)
(
rec
.
raw_id
,
rec
.
data_type
,
rec
.
cor_sci_id
,
rec
.
prc_params
,
rec
.
flat_id
,
rec
.
dark_id
,
rec
.
bias_id
,
rec
.
lamp_id
,
rec
.
arc_id
,
rec
.
sky_id
,
rec
.
filename
,
rec
.
file_path
,
-
1
,
rec
.
prc_status
,
rec
.
prc_time
,
format_time_ms
(
time
.
time
()),
rec
.
pipeline_id
,)
)
self
.
db
.
end
()
rec
.
id
=
self
.
db
.
last_row_id
()
...
...
csst_dfs_api_local/msc/level1.py
View file @
5ab3235a
...
...
@@ -202,7 +202,7 @@ class Level1DataApi(object):
self
.
db
.
execute
(
'INSERT INTO msc_level1_data (raw_id,data_type,cor_sci_id,prc_params,flat_id,dark_id,bias_id,filename,file_path,qc1_status,prc_status,prc_time,create_time,pipeline_id)
\
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?)'
,
(
rec
.
raw_id
,
rec
.
data_type
,
rec
.
cor_sci_id
,
rec
.
prc_params
,
rec
.
flat_id
,
rec
.
dark_id
,
rec
.
bias_id
,
rec
.
filename
,
rec
.
file_path
,
-
1
,
-
1
,
rec
.
prc_time
,
format_time_ms
(
time
.
time
()),
rec
.
pipeline_id
,)
(
rec
.
raw_id
,
rec
.
data_type
,
rec
.
cor_sci_id
,
rec
.
prc_params
,
rec
.
flat_id
,
rec
.
dark_id
,
rec
.
bias_id
,
rec
.
filename
,
rec
.
file_path
,
-
1
,
rec
.
prc_status
,
rec
.
prc_time
,
format_time_ms
(
time
.
time
()),
rec
.
pipeline_id
,)
)
self
.
db
.
end
()
rec
.
id
=
self
.
db
.
last_row_id
()
...
...
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