-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated feature - Displaying extent of available data
- Loading branch information
1 parent
1f74928
commit 96fee34
Showing
14 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import os | ||
import django | ||
|
||
def populate(): | ||
files = satelliteMetadataFiles().__class__.objects.all() | ||
# print(files) | ||
for file in files: | ||
file.filename = file.filename[3:] | ||
print(file.filename) | ||
file.save() | ||
|
||
if __name__ == '__main__': | ||
print("Starting script...") | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') | ||
django.setup() | ||
from myapp.models import * | ||
populate() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 2.2.2 on 2019-06-20 06:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myapp', '0005_auto_20190613_0938'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='satelliteMetadataFiles', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('filename', models.CharField(default='', max_length=100)), | ||
], | ||
), | ||
] |
Binary file added
BIN
+722 Bytes
myproject/myapp/migrations/__pycache__/0006_satellitemetadatafiles.cpython-36.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,3 +373,4 @@ function getIndices(){ | |
} | ||
); | ||
} | ||
|