Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
f7a4f907
Commit
f7a4f907
authored
Sep 11, 2018
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L2A product population
parent
ea346881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
populate_products_l2a.py
catalog/management/commands/populate_products_l2a.py
+3
-1
No files found.
catalog/management/commands/populate_products_l2a.py
View file @
f7a4f907
...
@@ -43,12 +43,14 @@ class Command(BaseCommand):
...
@@ -43,12 +43,14 @@ class Command(BaseCommand):
PRODUCT_EXISTS
=
Product_l2a
.
objects
.
filter
(
identifier
=
file_name
)
.
exists
()
PRODUCT_EXISTS
=
Product_l2a
.
objects
.
filter
(
identifier
=
file_name
)
.
exists
()
if
not
PRODUCT_EXISTS
:
if
not
PRODUCT_EXISTS
:
file_path
=
path
+
"/"
+
file
prod_l1c
=
Product_l1c
.
objects
.
filter
(
identifier
=
file_name
.
replace
(
"L2A"
,
"L1C"
))[
0
]
prod_l1c
=
Product_l1c
.
objects
.
filter
(
identifier
=
file_name
.
replace
(
"L2A"
,
"L1C"
))[
0
]
product_l2a
=
Product_l2a
(
product_l2a
=
Product_l2a
(
prod_l1c
=
prod_l1c
,
prod_l1c
=
prod_l1c
,
identifier
=
file_name
,
identifier
=
file_name
,
file_path
=
path
file_path
=
file_
path
)
)
product_l2a
.
save
()
product_l2a
.
save
()
...
...
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