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
d838421c
Commit
d838421c
authored
Jun 22, 2021
by
Wei Shoulin
Browse files
updateheader
parent
9cb7f264
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_api_local/common/ingest.py
View file @
d838421c
...
...
@@ -90,8 +90,8 @@ def ingesst_one(file_path, db, copyfiles):
#level0-header
ra_obj
=
header
[
"RA_OBJ"
]
dec_obj
=
header
[
"DEC_OBJ"
]
c
=
db
.
execute
(
"insert into t_level0_header
\
db
.
execute
(
"delete from t_level0_header where id=?"
,(
level0_id
,))
db
.
execute
(
"insert into t_level0_header
\
(id, obs_time, exp_time, ra, `dec`, create_time)
\
values (?,?,?,?,?,?)"
,
(
level0_id
,
exp_start_time
,
exp_time
,
ra_obj
,
dec_obj
,
create_time
))
...
...
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