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
abb0da9f
Commit
abb0da9f
authored
Sep 11, 2018
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L1C propudct population
parent
32b3280f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
populate_products_l1c.py
catalog/management/commands/populate_products_l1c.py
+2
-1
No files found.
catalog/management/commands/populate_products_l1c.py
View file @
abb0da9f
...
...
@@ -63,6 +63,7 @@ class Command(BaseCommand):
sftp
=
ssh
.
open_sftp
()
## Creates SFTPClient() object
sftp
.
chdir
(
path
)
file_list
=
sftp
.
listdir
()
file_list
.
sort
()
for
file
in
file_list
:
file_name
=
file
.
replace
(
".zip"
,
''
)
...
...
@@ -84,7 +85,7 @@ class Command(BaseCommand):
print
"NEW product with UUID: "
+
data_dict
[
'id'
]
except
:
print
"ERROR with file "
+
file
_name
print
"ERROR with file "
+
file
# else:
# print "Product " + file_name + " is ALREADY in DB."
...
...
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