Skip to content

Commit 95161b1

Browse files
authored
Merge pull request #45 from eodms-sgdot/development
Development
2 parents 6323734 + a24464b commit 95161b1

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

eodms_cli.code-workspace

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"name": "eodms-prod-stac-access",
8+
"path": "../../eodms-stac-api/lambda/_eodms-prod-stac-access_wksp/eodms-prod-stac-access"
9+
},
10+
{
11+
"name": "eodms-staging-stac",
12+
"path": "../../eodms-stac-api/lambda/_eodms-staging-stac_wksp/eodms-staging-stac"
13+
},
14+
{
15+
"name": "_eodms-staging-stac_wksp",
16+
"path": "../../eodms-stac-api/lambda/_eodms-staging-stac_wksp"
17+
},
18+
{
19+
"name": "_eodms-prod-stac-access_wksp",
20+
"path": "../../eodms-stac-api/lambda/_eodms-prod-stac-access_wksp"
21+
},
22+
{
23+
"name": "eodms-prod-stac-20231109",
24+
"path": "../../eodms-stac-api/lambda/eodms-prod-stac-20231109"
25+
}
26+
],
27+
"settings": {},
28+
"launch": {
29+
"configurations": [
30+
{
31+
"type": "aws-sam",
32+
"request": "direct-invoke",
33+
"name": "eodms-staging-stac:lambda_function.lambda_handler (python3.9)",
34+
"invokeTarget": {
35+
"target": "code",
36+
"projectRoot": "C:/Working/Development/EODMS/eodms-stac-api/lambda/_eodms-staging-stac_wksp/eodms-staging-stac",
37+
"lambdaHandler": "lambda_function.lambda_handler"
38+
},
39+
"lambda": {
40+
"runtime": "python3.9",
41+
"payload": {},
42+
"environmentVariables": {}
43+
}
44+
},
45+
{
46+
"type": "aws-sam",
47+
"request": "direct-invoke",
48+
"name": "eodms-staging-stac:lambda_function.lambda_handler (python3.9)",
49+
"invokeTarget": {
50+
"target": "code",
51+
"projectRoot": "eodms-staging-stac",
52+
"lambdaHandler": "lambda_function.lambda_handler"
53+
},
54+
"lambda": {
55+
"runtime": "python3.9",
56+
"payload": {},
57+
"environmentVariables": {}
58+
}
59+
},
60+
{
61+
"type": "aws-sam",
62+
"request": "direct-invoke",
63+
"name": "eodms-prod-stac-access:lambda_function.lambda_handler (python3.9)",
64+
"invokeTarget": {
65+
"target": "code",
66+
"projectRoot": "eodms-prod-stac-access",
67+
"lambdaHandler": "lambda_function.lambda_handler"
68+
},
69+
"lambda": {
70+
"runtime": "python3.9",
71+
"payload": {},
72+
"environmentVariables": {}
73+
}
74+
}
75+
]
76+
}
77+
}

eodms_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
__license__ = 'MIT License'
1818
__description__ = 'Script used to search, order and download imagery from ' \
1919
'the EODMS using the REST API (RAPI) service.'
20-
__version__ = '3.4.0'
20+
__version__ = '3.4.2'
2121
__maintainer__ = 'Kevin Ballantyne'
2222
__email__ = 'eodms-sgdot@nrcan-rncan.gc.ca'
2323

scripts/field.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def get_choices(self, values_only=False):
9999
:return: A list of choices.
100100
:rtype: list or None
101101
"""
102-
if values_only:
102+
103+
# print(f"self.choices: {self.choices}")
104+
105+
if values_only and self.choices:
103106
return [c.get('value') for c in self.choices]
104107

105108
return self.choices

0 commit comments

Comments
 (0)