Skip to content

Commit 2d9d5fb

Browse files
committed
new file for connection check with scihub
1 parent 8d4a036 commit 2d9d5fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

33
LABEL maintainer="Andreas Vollrath, FAO"
44
LABEL OpenSARToolkit='0.12.3'

ost/helpers/scihub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def check_connection(uname, pword,
198198

199199
# we use some random url for checking (also for czech mirror)
200200
url = (
201-
f'{base_url}/odata/v1/Products?'
202-
'$select=Id&$filter=substringof(%27_20200714T165921_%27,Name)'
201+
f'{base_url}/odata/v1/Products('
202+
'\'8f30a536-c01c-4ef4-ac74-be3378dc44c4\')/$value'
203203
)
204204

205205
response = requests.get(url, auth=(uname, pword), stream=True)

0 commit comments

Comments
 (0)